From 78678be2b61f4510460d9876b0be34a4d1dc8113 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Tue, 18 Jun 2013 16:18:19 +0200 Subject: remove dangling AND in SQL statement --- lib/vcategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.3