Skip to content
Snippets Groups Projects
Commit 0a417b11 authored by Owen Winkler's avatar Owen Winkler Committed by Thomas Müller
Browse files

Use ->instanceOfStorage() not instanceof for Storage instances.

parent 0e85618c
No related branches found
No related tags found
No related merge requests found
......@@ -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('');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment