summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorringmaster <epithet@gmail.com>2014-06-02 15:52:31 -0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-04 07:55:46 +0200
commit0a417b11742fc952cf69237fbfcccf0219b68356 (patch)
tree00e958ebcfe662e6da8a56d12f7ee4cc944cad91 /lib/private/helper.php
parent0e85618c429e3a33492dbd7cf7c6dadf17219926 (diff)
downloadnextcloud-server-0a417b11742fc952cf69237fbfcccf0219b68356.tar.gz
nextcloud-server-0a417b11742fc952cf69237fbfcccf0219b68356.zip
Use ->instanceOfStorage() not instanceof for Storage instances.
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php2
1 files changed, 1 insertions, 1 deletions
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('');