1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Bugtracker #4115 - possible query speedup/improvement

This commit is contained in:
e107steved
2007-10-08 21:02:52 +00:00
parent ce156ec8b5
commit 5d6dc0aecf

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu.php,v $
| $Revision: 1.4 $ | $Revision: 1.5 $
| $Date: 2007-07-23 21:13:34 $ | $Date: 2007-10-08 21:02:42 $
| $Author: e107steved $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -31,7 +31,7 @@ else
} }
$max_age = varset($menu_pref['newforumposts_maxage'],0); $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 = " $query2 = "
SELECT tp.thread_name AS parent_name, SELECT tp.thread_name AS parent_name,
t.thread_datestamp , t.thread_thread, t.thread_name, t.thread_id, t.thread_user, t.thread_datestamp , t.thread_thread, t.thread_name, t.thread_id, t.thread_user,