Use ->instanceOfStorage() not instanceof for Storage instances.
This commit is contained in:
parent
0e85618c42
commit
0a417b1174
|
@ -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('');
|
||||
|
|
Loading…
Reference in New Issue