diff options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/irequest.php | 2 | ||||
-rw-r--r-- | lib/public/user.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/irequest.php b/lib/public/irequest.php index a0040aa464d..296c70f4ecc 100644 --- a/lib/public/irequest.php +++ b/lib/public/irequest.php @@ -129,7 +129,7 @@ interface IRequest { * Shortcut for getting cookie variables * * @param string $key the key that will be taken from the $_COOKIE array - * @return array the value in the $_COOKIE element + * @return string the value in the $_COOKIE element * @since 6.0.0 */ public function getCookie($key); diff --git a/lib/public/user.php b/lib/public/user.php index 825e77aef6d..64ac92d2100 100644 --- a/lib/public/user.php +++ b/lib/public/user.php @@ -119,7 +119,7 @@ class User { * @since 5.0.0 */ public static function logout() { - \OC_User::logout(); + \OC::$server->getUserSession()->logout(); } /** |