From 2288da4d2e1c4f72b66a7a712e18574f549d32a8 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 14 Dec 2008 07:02:38 +0000 Subject: [PATCH] Expand ASC condition as it should be --- includes/filerepo/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index dfd8332125..40bf49f6af 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -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, -- 2.20.1