mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #3774 from owncloud/fix_sql_in_vcategories
remove dangling AND in SQL statement
This commit is contained in:
commit
7ee57dd42c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue