mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12038] Use $move_executed in place of $db->sql_affectedrows().
PHPBB3-12038
This commit is contained in:
parent
9e8ee56404
commit
823d2b697a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue