summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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, ''));
}