diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-08-31 15:52:11 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-09-19 18:13:06 +0200 |
commit | f6284bdce735651a572474d97930239bd2315d52 (patch) | |
tree | 91ea0c447ce82408a62c2a2c5b6e81468442fcdd | |
parent | 395cc737a17fb2bd22f38b7cccf4ba1efd32cafd (diff) | |
download | nextcloud-server-f6284bdce735651a572474d97930239bd2315d52.tar.gz nextcloud-server-f6284bdce735651a572474d97930239bd2315d52.zip |
Add missing return true statements to legacy preferences functions
-rw-r--r-- | lib/legacy/preferences.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/legacy/preferences.php b/lib/legacy/preferences.php index 7b4cfca96bc..a663db7598b 100644 --- a/lib/legacy/preferences.php +++ b/lib/legacy/preferences.php @@ -84,12 +84,14 @@ class OC_Preferences{ * @param string $app app * @param string $key key * @param string $value value + * @return bool * * Adds a value to the preferences. If the key did not exist before, it * will be added automagically. */ public static function setValue( $user, $app, $key, $value ) { self::$object->setValue( $user, $app, $key, $value ); + return true; } /** @@ -102,36 +104,43 @@ class OC_Preferences{ */ public static function deleteKey( $user, $app, $key ) { self::$object->deleteKey( $user, $app, $key ); + return true; } /** * @brief Remove app of user from preferences * @param string $user user * @param string $app app + * @return bool * * Removes all keys in preferences belonging to the app and the user. */ public static function deleteApp( $user, $app ) { self::$object->deleteApp( $user, $app ); + return true; } /** * @brief Remove user from preferences * @param string $user user + * @return bool * * Removes all keys in preferences belonging to the user. */ public static function deleteUser( $user ) { self::$object->deleteUser( $user ); + return true; } /** * @brief Remove app from all users * @param string $app app + * @return bool * * Removes all keys in preferences belonging to the app. */ public static function deleteAppFromAllUsers( $app ) { self::$object->deleteAppFromAllUsers( $app ); + return true; } } |