[Customisation Database Commits] r207 - /trunk/titania/includes/objects/rating.php
Nathan Guse
exreaction at phpbb.com
Wed Jun 10 22:41:50 UTC 2009
Author: exreaction
Date: Wed Jun 10 22:41:50 2009
New Revision: 207
Log:
Tabs :x
Modified:
trunk/titania/includes/objects/rating.php
Modified: trunk/titania/includes/objects/rating.php
==============================================================================
*** trunk/titania/includes/objects/rating.php (original)
--- trunk/titania/includes/objects/rating.php Wed Jun 10 22:41:50 2009
***************
*** 162,169 ****
$sql = 'SELECT * FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_user_id = ' . (int) phpbb::$user->data['user_id'] . '
! AND rating_object_id = ' . (int) $this->object_id;
$result = phpbb::$db->sql_query($sql);
$this->sql_data = phpbb::$db->sql_fetchrow($result);
phpbb::$db->sql_freeresult($result);
--- 162,169 ----
$sql = 'SELECT * FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_user_id = ' . (int) phpbb::$user->data['user_id'] . '
! AND rating_object_id = ' . (int) $this->object_id;
$result = phpbb::$db->sql_query($sql);
$this->sql_data = phpbb::$db->sql_fetchrow($result);
phpbb::$db->sql_freeresult($result);
***************
*** 211,217 ****
$cnt = $total = 0;
$sql = 'SELECT rating_value FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_object_id = ' . (int) $this->object_id;
$result = phpbb::$db->sql_query($sql);
while ($row = phpbb::$db->sql_fetchrow($result))
{
--- 211,217 ----
$cnt = $total = 0;
$sql = 'SELECT rating_value FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_object_id = ' . (int) $this->object_id;
$result = phpbb::$db->sql_query($sql);
while ($row = phpbb::$db->sql_fetchrow($result))
{
***************
*** 243,249 ****
$cnt = $total = 0;
$sql = 'SELECT rating_value FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_object_id = ' . (int) $this->object_id;
$result = phpbb::$db->sql_query($sql);
while ($row = phpbb::$db->sql_fetchrow($result))
{
--- 243,249 ----
$cnt = $total = 0;
$sql = 'SELECT rating_value FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_object_id = ' . (int) $this->object_id;
$result = phpbb::$db->sql_query($sql);
while ($row = phpbb::$db->sql_fetchrow($result))
{
***************
*** 271,277 ****
$sql = 'DELETE FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_object_id = ' . (int) $this->object_id;
phpbb::$db->sql_query($sql);
$sql = 'UPDATE ' . $this->cache_table . ' SET ' .
--- 271,277 ----
$sql = 'DELETE FROM ' . $this->sql_table . '
WHERE rating_type_id = ' . (int) $this->rating_type . '
! AND rating_object_id = ' . (int) $this->object_id;
phpbb::$db->sql_query($sql);
$sql = 'UPDATE ' . $this->cache_table . ' SET ' .
More information about the customisationdb-commits
mailing list