From 5d14d5ec7396fcffaeaa429de697924eac266f69 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 19 Oct 2010 13:13:14 +0200 Subject: [PATCH] Fixing delete condition in works see BT#1673 --- main/work/work.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/work/work.php b/main/work/work.php index 7fb674e095..e01a42b150 100755 --- a/main/work/work.php +++ b/main/work/work.php @@ -784,7 +784,7 @@ else { $author_qry = Database::query($author_sql); - if (Database :: num_rows($author_qry) == 1 AND api_get_course_setting('student_delete_own_publication') == 1 || api_is_allowed_to_edit(null,true)) { + if ((Database :: num_rows($author_qry) == 1 AND api_get_course_setting('student_delete_own_publication') == 1) || api_is_allowed_to_edit(null,true)) { //we found the current user is the author $queryString1 = "SELECT url FROM " . $work_table . " WHERE id = '$delete'"; $result1 = Database::query($queryString1);