summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-02-21 00:02:27 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-02-21 00:02:27 +0100
commit7c7031df44bd78bf8253d44a801b8bf25490f4bb (patch)
treef06ddceea6ef1ce7721422a567eee4c8bf09ccdb /lib
parentc691c9d24cc152f039222403c659329e2075b48a (diff)
downloadnextcloud-server-7c7031df44bd78bf8253d44a801b8bf25490f4bb.tar.gz
nextcloud-server-7c7031df44bd78bf8253d44a801b8bf25490f4bb.zip
Forgot to assign param.
Diffstat (limited to 'lib')
-rw-r--r--lib/vcategories.php4
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, ''));
}