Expand ASC condition as it should be
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 14 Dec 2008 07:02:38 +0000 (07:02 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 14 Dec 2008 07:02:38 +0000 (07:02 +0000)
includes/filerepo/LocalFile.php

index dfd8332..40bf49f 100644 (file)
@@ -641,7 +641,7 @@ class LocalFile extends File
                        $opts['LIMIT'] = $limit;
                }
                // Search backwards for time > x queries
-               $order = (!$start && $end === "") ? "ASC" : "DESC";
+               $order = (!$start && $end !== null) ? "ASC" : "DESC";
                $opts['ORDER BY'] = "oi_timestamp $order";
                
                wfRunHooks( 'LocalFile::getHistory', array( &$this, &$tables, &$fields,