diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-29 13:52:58 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-29 13:52:58 +0200 |
commit | 99d46af0b42dcf4ae221aebc862085615fc70af1 (patch) | |
tree | 9c2e39d7351aac80c5f0eb65ed3e7a212f09d13b /lib/private/util.php | |
parent | 8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94 (diff) | |
download | nextcloud-server-99d46af0b42dcf4ae221aebc862085615fc70af1.tar.gz nextcloud-server-99d46af0b42dcf4ae221aebc862085615fc70af1.zip |
Use instanceOfStorage instead of instanceof
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-x | lib/private/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 23c7053002c..bf7f39ebb20 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -57,7 +57,10 @@ class OC_Util { // set up quota for home storages, even for other users // which can happen when using sharing - if ($storage instanceof \OC\Files\Storage\Home) { + /** + * @var \OC\Files\Storage\Storage $storage + */ + if ($storage->instanceOfStorage('\OC\Files\Storage\Home')) { $user = $storage->getUser()->getUID(); $quota = OC_Util::getUserQuota($user); if ($quota !== \OC\Files\SPACE_UNLIMITED) { |