diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-01-11 20:07:15 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-01-11 20:07:15 +0100 |
commit | 237ba65a20edfbd346405e03583a96808602a2ca (patch) | |
tree | e101b9a441ac0e4704affabb3293da897c07c11d /apps/contacts/lib/addressbook.php | |
parent | eae3e134ff9005e50ea4e611b2c2daba94ad49ea (diff) | |
download | nextcloud-server-237ba65a20edfbd346405e03583a96808602a2ca.tar.gz nextcloud-server-237ba65a20edfbd346405e03583a96808602a2ca.zip |
Localizin strings and adding error checking.
Diffstat (limited to 'apps/contacts/lib/addressbook.php')
-rw-r--r-- | apps/contacts/lib/addressbook.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/contacts/lib/addressbook.php b/apps/contacts/lib/addressbook.php index 41d488c09f9..052c19e55fe 100644 --- a/apps/contacts/lib/addressbook.php +++ b/apps/contacts/lib/addressbook.php @@ -256,6 +256,7 @@ class OC_Contacts_Addressbook{ * @return boolean */ public static function delete($id){ + // FIXME: There's no error checking at all. self::setActive($id, false); $stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_addressbooks WHERE id = ?' ); $stmt->execute(array($id)); |