Forgot to assign param.

This commit is contained in:
Thomas Tanghus 2012-02-21 00:02:27 +01:00
parent c691c9d24c
commit 7c7031df44
1 changed files with 1 additions and 3 deletions

View File

@ -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, ''));
}