summaryrefslogtreecommitdiff
path: root/www/functions/func_upload.php
diff options
context:
space:
mode:
authorHorus32014-04-05 18:26:27 +0200
committerHorus32014-04-05 18:26:27 +0200
commitd8141b6e431a35eb21c24f974ed4e3da3d3e371a (patch)
tree6896b93a1fb531f9e1056d42388e71d9fdea86b9 /www/functions/func_upload.php
parentf4e1c90897d3d9a2f139fc604401694df273edc7 (diff)
downloadfiles.iamfabulous.de-d8141b6e431a35eb21c24f974ed4e3da3d3e371a.tar.gz
Output now orderd by type and name instead of creating date.
Diffstat (limited to 'www/functions/func_upload.php')
-rwxr-xr-xwww/functions/func_upload.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/www/functions/func_upload.php b/www/functions/func_upload.php
index c8ef93a..42a7304 100755
--- a/www/functions/func_upload.php
+++ b/www/functions/func_upload.php
@@ -39,10 +39,8 @@ function upload($path){
$overall_size_db = $db->query("SELECT size FROM files WHERE owner=" . $owner . " AND size > 0;");
$overall_size = 0;
- $count = 0;
while($row = $overall_size_db->fetchArray(SQLITE3_NUM)){
- $overall_size = $overall_size + $row[$count];
- $count++;
+ $overall_size = $overall_size + $row[0];
}
if($overall_size > 2147483648){ // == 2GB