Merge pull request #1178 from owncloud/return_true_because_of_ponies

Remove uneeded return
This commit is contained in:
Thomas Müller 2013-01-15 14:01:48 -08:00
commit 4668f8c86e
2 changed files with 1 additions and 8 deletions

View File

@ -73,12 +73,10 @@ class User {
}
/**
* @brief Loggs the user out including all the session data
* @returns true
*
* Logout, destroys session
*/
public static function logout() {
return \OC_USER::logout();
\OC_USER::logout();
}
/**

View File

@ -260,17 +260,13 @@ class OC_User {
/**
* @brief Sets user id for session and triggers emit
* @returns true
*
*/
public static function setUserId($uid) {
$_SESSION['user_id'] = $uid;
return true;
}
/**
* @brief Logs the current user out and kills all the session data
* @returns true
*
* Logout, destroys session
*/
@ -279,7 +275,6 @@ class OC_User {
session_unset();
session_destroy();
OC_User::unsetMagicInCookie();
return true;
}
/**