]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
missing AND in the SQL
authorBrenda Wallace <shiny@cpan.org>
Wed, 22 Jul 2009 01:45:38 +0000 (13:45 +1200)
committerBrenda Wallace <shiny@cpan.org>
Wed, 22 Jul 2009 05:10:20 +0000 (17:10 +1200)
classes/File.php

index 68d385d1ea2365de360b5d5b8373bf52e90b1883..7ee8f6e084fae148cdbbf2c31a2100e5ccc9d4df 100644 (file)
@@ -136,7 +136,7 @@ class File extends Memcached_DataObject
             return sprintf(_('A file this large would exceed your user quota of %d bytes.'), common_config('attachments', 'user_quota'));
         }
 
-        $query .= ' month(modified) = month(now()) and year(modified) = year(now())';
+        $query .= ' AND month(modified) = month(now()) and year(modified) = year(now())';
         $this->query($query);
         $this->fetch();
         $total = $this->total + $fileSize;