diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-07-22 13:45:38 +1200 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-07-22 17:10:20 +1200 |
commit | 2aa47096b82fd224008d901584f09931c0432c2b (patch) | |
tree | 3483c10a419846e8fcd1e5e6fb4771ca03d27add /classes | |
parent | 38d70f13865b197e17773ba24d67ea1148c32ab3 (diff) |
missing AND in the SQL
Diffstat (limited to 'classes')
-rw-r--r-- | classes/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File.php b/classes/File.php index 68d385d1e..7ee8f6e08 100644 --- a/classes/File.php +++ b/classes/File.php @@ -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; |