From 0da76794566d5e4a9990b186e3bc8a9ac98d9979 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 13 Mar 2007 23:59:34 +0000 Subject: [PATCH] Quote timestamp column: may not be numeric. --- includes/SpecialNewimages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialNewimages.php b/includes/SpecialNewimages.php index b41ff5657b..817d64972a 100644 --- a/includes/SpecialNewimages.php +++ b/includes/SpecialNewimages.php @@ -87,10 +87,10 @@ function wfSpecialNewimages( $par, $specialPage ) { $invertSort = false; if( $until = $wgRequest->getVal( 'until' ) ) { - $where[] = 'img_timestamp < ' . $dbr->timestamp( $until ); + $where[] = "img_timestamp < '" . $dbr->timestamp( $until ) . "'"; } if( $from = $wgRequest->getVal( 'from' ) ) { - $where[] = 'img_timestamp >= ' . $dbr->timestamp( $from ); + $where[] = "img_timestamp >= '" . $dbr->timestamp( $from ) . "'"; $invertSort = true; } $sql='SELECT img_size, img_name, img_user, img_user_text,'. -- 2.20.1