From 51bc3fbe5f76f951d56cba870d6de6ad086c374b Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Wed, 1 Oct 2014 13:58:28 +0200 Subject: [PATCH] Add a backslash to fix an error. Plus a simple whitespace fix. --- lib/hooks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hooks.php b/lib/hooks.php index 08fd4c53..57ad2727 100644 --- a/lib/hooks.php +++ b/lib/hooks.php @@ -204,10 +204,10 @@ class Hooks{ } $offset += $limit; } - $stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*contacts_cards_properties` + $stmt = \OCP\DB::prepare('DELETE FROM `*PREFIX*contacts_cards_properties` WHERE NOT EXISTS(SELECT NULL - FROM `*PREFIX*contacts_cards` - WHERE `*PREFIX*contacts_cards`.id = `*PREFIX*contacts_cards_properties`.contactid)'); + FROM `*PREFIX*contacts_cards` + WHERE `*PREFIX*contacts_cards`.id = `*PREFIX*contacts_cards_properties`.contactid)'); $result = $stmt->execute(array()); }