Merge pull request #22435 from owncloud/trashbin-hook-nouser

Don't resize trash when no user
This commit is contained in:
Thomas Müller 2016-02-17 10:57:50 +01:00
commit ff4e040971
1 changed files with 5 additions and 2 deletions

View File

@ -44,6 +44,9 @@ class Hooks {
}
public static function post_write_hook($params) {
Trashbin::resizeTrash(\OCP\User::getUser());
$user = \OCP\User::getUser();
if (!empty($user)) {
Trashbin::resizeTrash($user);
}
}
}