diff options
Diffstat (limited to 'lib/upload.php')
-rw-r--r-- | lib/upload.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/upload.php b/lib/upload.php index 0b034517c..a83323f16 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -111,9 +111,9 @@ function tp_upload_check_quota($image_size, $owner_guid) { // no quota return true; } - - $image_repo_size_md = get_metadata_byname($owner_guid, "image_repo_size"); - $image_repo_size = (int)$image_repo_size_md->value; + + $owner = get_entity($owner_guid); + $image_repo_size_md = (int)$owner->image_repo_size; return ($image_repo_size + $image_size) < $quota; }
\ No newline at end of file |