[Customisation Database Commits] r1117 - /trunk/titania/manage/queue_discussion.php

Nathan Guse exreaction at phpbb.com
Mon Apr 26 04:33:59 BST 2010


Author: exreaction
Date: Mon Apr 26 04:33:58 2010
New Revision: 1117

Log:
Nub from when this code was copied from queue.php

Modified:
    trunk/titania/manage/queue_discussion.php

Modified: trunk/titania/manage/queue_discussion.php
==============================================================================
*** trunk/titania/manage/queue_discussion.php (original)
--- trunk/titania/manage/queue_discussion.php Mon Apr 26 04:33:58 2010
***************
*** 47,55 ****
  	{
  		foreach ($authed as $type_id)
  		{
! 			$sql = 'SELECT COUNT(queue_id) AS cnt FROM ' . TITANIA_QUEUE_TABLE . '
! 				WHERE queue_type = ' . (int) $type_id . '
! 					AND queue_status = 1';
  			phpbb::$db->sql_query($sql);
  			$cnt = phpbb::$db->sql_fetchfield('cnt');
  			phpbb::$db->sql_freeresult();
--- 47,55 ----
  	{
  		foreach ($authed as $type_id)
  		{
! 			$sql = 'SELECT COUNT(topic_id) AS cnt FROM ' . TITANIA_TOPICS_TABLE . '
! 				WHERE topic_type = ' . TITANIA_QUEUE_DISCUSSION . '
! 					AND topic_category = ' . (int) $type_id;
  			phpbb::$db->sql_query($sql);
  			$cnt = phpbb::$db->sql_fetchfield('cnt');
  			phpbb::$db->sql_freeresult();




More information about the customisationdb-commits mailing list