]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove dangling AND in SQL statement
authorJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 18 Jun 2013 14:18:19 +0000 (16:18 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 18 Jun 2013 14:18:19 +0000 (16:18 +0200)
lib/vcategories.php

index 91c72d5dfaecda0cf31c007f8a411b45b8bf3ae7..7bac6e7d4e34acc805e2ed2a32468ca0851fab22 100644 (file)
@@ -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);