[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/02: Cannot remove a shared note
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/02: Cannot remove a shared note |
Date: |
Thu, 21 Jan 2016 17:17:01 +0000 |
sparkyx pushed a commit to annotated tag rel6914
in repository noalyss.
commit da8ec1b39c9a6ce735e15dbe4e1db6d229f20b90
Author: Dany De Bontridder <address@hidden>
Date: Thu Jan 21 17:56:00 2016 +0100
Cannot remove a shared note
---
include/class/class_todo_list.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/class/class_todo_list.php
b/include/class/class_todo_list.php
index 6898b93..be9b511 100644
--- a/include/class/class_todo_list.php
+++ b/include/class/class_todo_list.php
@@ -229,8 +229,14 @@ class Todo_List
{
global $g_user;
if ( $this->use_login != $_SESSION['g_user'] &&
$g_user->check_action(SHARENOTEREMOVE)==0) return;
+
+ $sql="delete from todo_list_shared where todo_list_id=$1 ";
+ $res=$this->cn->exec_sql($sql,array($this->tl_id));
+
$sql="delete from todo_list where tl_id=$1 ";
$res=$this->cn->exec_sql($sql,array($this->tl_id));
+
+
}
/**