[ticket/12038] Use $move_executed in place of $db->sql_affectedrows().

PHPBB3-12038
This commit is contained in:
Cesar G 2013-12-06 00:09:36 -08:00
parent 9e8ee56404
commit 823d2b697a

View file

@ -835,7 +835,7 @@ class acp_icons
$move_executed = (bool) $db->sql_affectedrows();
// Only update the other entry too if the previous entry got updated
if ($db->sql_affectedrows())
if ($move_executed)
{
$sql = "UPDATE $table
SET {$fields}_order = $switch_order_id