diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-02-21 00:02:27 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-02-21 00:02:27 +0100 |
commit | 7c7031df44bd78bf8253d44a801b8bf25490f4bb (patch) | |
tree | f06ddceea6ef1ce7721422a567eee4c8bf09ccdb /lib | |
parent | c691c9d24cc152f039222403c659329e2075b48a (diff) | |
download | nextcloud-server-7c7031df44bd78bf8253d44a801b8bf25490f4bb.tar.gz nextcloud-server-7c7031df44bd78bf8253d44a801b8bf25490f4bb.zip |
Forgot to assign param.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vcategories.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/vcategories.php b/lib/vcategories.php index 8bd03d44239..f9e4d1b3489 100644 --- a/lib/vcategories.php +++ b/lib/vcategories.php @@ -52,9 +52,7 @@ class OC_VCategories { */ public function __construct($app, $user=null) { $this->app = $app; - if(is_null($user)) { - $this->user = OC_User::getUser(); - } + $this->user = is_null($user) ? OC_User::getUser() : $user; $this->categories = OC_VObject::unescapeSemicolons(OC_Preferences::getValue($this->user, $app, self::PREF_CATEGORIES_LABEL, '')); } |