From 5d6dc0aecf2313a6a91ffe97cc1fddc43429a15f Mon Sep 17 00:00:00 2001 From: e107steved Date: Mon, 8 Oct 2007 21:02:52 +0000 Subject: [PATCH] Bugtracker #4115 - possible query speedup/improvement --- e107_plugins/forum/newforumposts_menu.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/newforumposts_menu.php b/e107_plugins/forum/newforumposts_menu.php index cb1ef2deb..47ca7fbc7 100755 --- a/e107_plugins/forum/newforumposts_menu.php +++ b/e107_plugins/forum/newforumposts_menu.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu.php,v $ -| $Revision: 1.4 $ -| $Date: 2007-07-23 21:13:34 $ +| $Revision: 1.5 $ +| $Date: 2007-10-08 21:02:42 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -31,7 +31,7 @@ else } $max_age = varset($menu_pref['newforumposts_maxage'],0); -$max_age = $max_age == 0 ? '' : "(t.thread_datestamp > '".intval(time()-$max_age*86400)."') AND "; +$max_age = $max_age == 0 ? '' : "(t.thread_datestamp > ".intval(time()-$max_age*86400).") AND "; $query2 = " SELECT tp.thread_name AS parent_name, t.thread_datestamp , t.thread_thread, t.thread_name, t.thread_id, t.thread_user,