diff --git a/lib/backend/abstractbackend.php b/lib/backend/abstractbackend.php index 8dec5e73..c3a79587 100644 --- a/lib/backend/abstractbackend.php +++ b/lib/backend/abstractbackend.php @@ -458,8 +458,7 @@ abstract class AbstractBackend { public function removePreferences($addressbookid) { $key = $this->combinedKey($addressbookid); $key = 'prefs_' . $key; - - \OC_Preferences::deleteKey( $this->userid, 'contacts', $key ); + \OC::$server->getConfig()->deleteUserValue( $this->userid, 'contacts', $key ); } }