diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-06-18 08:14:55 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-06-18 08:14:55 -0700 |
commit | 7ee57dd42c40e8dbd1beab09d29e23af4ee77508 (patch) | |
tree | 644fd6c9d871b000dda0c388877bf131bd536916 | |
parent | d991a9372b69871483d59e2257b5f8bb621a5503 (diff) | |
parent | 78678be2b61f4510460d9876b0be34a4d1dc8113 (diff) | |
download | nextcloud-server-7ee57dd42c40e8dbd1beab09d29e23af4ee77508.tar.gz nextcloud-server-7ee57dd42c40e8dbd1beab09d29e23af4ee77508.zip |
Merge pull request #3774 from owncloud/fix_sql_in_vcategories
remove dangling AND in SQL statement
-rw-r--r-- | lib/vcategories.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vcategories.php b/lib/vcategories.php index 91c72d5dfae..7bac6e7d4e3 100644 --- a/lib/vcategories.php +++ b/lib/vcategories.php @@ -554,7 +554,7 @@ class OC_VCategories { } try { $stmt = OCP\DB::prepare('DELETE FROM `' . self::CATEGORY_TABLE . '` ' - . 'WHERE `uid` = ? AND'); + . 'WHERE `uid` = ?'); $result = $stmt->execute(array($arguments['uid'])); if (OC_DB::isError($result)) { OC_Log::write('core', __METHOD__. 'DB error: ' . OC_DB::getErrorMessage($result), OC_Log::ERROR); |