mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/12038] Use $move_executed in place of $db->sql_affectedrows().
PHPBB3-12038
This commit is contained in:
@@ -835,7 +835,7 @@ class acp_icons
|
|||||||
$move_executed = (bool) $db->sql_affectedrows();
|
$move_executed = (bool) $db->sql_affectedrows();
|
||||||
|
|
||||||
// Only update the other entry too if the previous entry got updated
|
// Only update the other entry too if the previous entry got updated
|
||||||
if ($db->sql_affectedrows())
|
if ($move_executed)
|
||||||
{
|
{
|
||||||
$sql = "UPDATE $table
|
$sql = "UPDATE $table
|
||||||
SET {$fields}_order = $switch_order_id
|
SET {$fields}_order = $switch_order_id
|
||||||
|
Reference in New Issue
Block a user