[Customisation Database Commits] r262 - /trunk/titania/includes/objects/faq.php
Nathan Guse
exreaction at phpbb.com
Sat Jun 27 05:37:13 UTC 2009
Author: exreaction
Date: Sat Jun 27 05:37:13 2009
New Revision: 262
Log:
Had the order backwards in the query
Modified:
trunk/titania/includes/objects/faq.php
Modified: trunk/titania/includes/objects/faq.php
==============================================================================
*** trunk/titania/includes/objects/faq.php (original)
--- trunk/titania/includes/objects/faq.php Sat Jun 27 05:37:13 2009
***************
*** 101,107 ****
{
$sql = 'SELECT order_id FROM ' . TITANIA_CONTRIB_FAQ_TABLE . '
WHERE faq_order_id ' . (($direction == 'up') ? '<' : '>') . $this->faq_order_id . '
! ORDER BY faq_order_id ' . (($direction == 'up') ? 'ASC' : 'DESC');
phpbb::$db->sql_query_limit($sql, 1);
$new_order_id = phpbb::$db->sql_fetchfield('order_id');
phpbb::$db->sql_freeresult();
--- 101,107 ----
{
$sql = 'SELECT order_id FROM ' . TITANIA_CONTRIB_FAQ_TABLE . '
WHERE faq_order_id ' . (($direction == 'up') ? '<' : '>') . $this->faq_order_id . '
! ORDER BY faq_order_id ' . (($direction == 'up') ? 'DESC' : 'ASC');
phpbb::$db->sql_query_limit($sql, 1);
$new_order_id = phpbb::$db->sql_fetchfield('order_id');
phpbb::$db->sql_freeresult();
More information about the customisationdb-commits
mailing list