From: ringmaster Date: Mon, 2 Jun 2014 19:52:31 +0000 (-0400) Subject: Use ->instanceOfStorage() not instanceof for Storage instances. X-Git-Tag: v7.0.0alpha2~127^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0a417b11742fc952cf69237fbfcccf0219b68356;p=nextcloud-server.git Use ->instanceOfStorage() not instanceof for Storage instances. --- diff --git a/lib/private/helper.php b/lib/private/helper.php index e9ca036a32c..9ac07bbd3b1 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -946,7 +946,7 @@ class OC_Helper { $quota = 0; // TODO: need a better way to get total space from storage $storage = $rootInfo->getStorage(); - if ($storage instanceof \OC\Files\Storage\Wrapper\Quota) { + if ($storage->instanceOfStorage('\OC\Files\Storage\Wrapper\Quota')) { $quota = $storage->getQuota(); } $free = $storage->free_space('');