]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use ->instanceOfStorage() not instanceof for Storage instances.
authorringmaster <epithet@gmail.com>
Mon, 2 Jun 2014 19:52:31 +0000 (15:52 -0400)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 4 Jun 2014 05:55:46 +0000 (07:55 +0200)
lib/private/helper.php

index e9ca036a32cc79550cdc22823a98fed9f0d61d4f..9ac07bbd3b1dab71fafd1f778a88f99236f3d456 100644 (file)
@@ -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('');