[Customisation Database Commits] r1064 - /trunk/titania/includes/objects/category.php
Tom Catullo
tom at phpbb.com
Fri Apr 16 01:22:53 BST 2010
Author: Tom
Date: Fri Apr 16 01:22:53 2010
New Revision: 1064
Log:
Another fix. I need some more practice...
Modified:
trunk/titania/includes/objects/category.php
Modified: trunk/titania/includes/objects/category.php
==============================================================================
*** trunk/titania/includes/objects/category.php (original)
--- trunk/titania/includes/objects/category.php Fri Apr 16 01:22:53 2010
***************
*** 323,337 ****
}
phpbb::$db->sql_freeresult($result);
- if (!$contrib_ids)
- {
- $contrib_ids[] = 0;
- }
-
$sql = 'UPDATE ' . TITANIA_CONTRIB_IN_CATEGORIES_TABLE . '
SET category_id = ' . (int) $to_id . '
! WHERE category_id = ' . (int) $from_id . '
! AND ' . phpbb::$db->sql_in_set('contrib_id', $contrib_ids, true);
phpbb::$db->sql_query($sql);
// Now delete the contrib records from the previous parent category
--- 323,332 ----
}
phpbb::$db->sql_freeresult($result);
$sql = 'UPDATE ' . TITANIA_CONTRIB_IN_CATEGORIES_TABLE . '
SET category_id = ' . (int) $to_id . '
! WHERE category_id = ' . (int) $from_id .
! ((sizeof($contrib_ids)) ? ' AND ' . phpbb::$db->sql_in_set('contrib_id', $contrib_ids, true) : '');
phpbb::$db->sql_query($sql);
// Now delete the contrib records from the previous parent category
More information about the customisationdb-commits
mailing list