Skip to content

Commit

Permalink
Line length reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Sep 23, 2021
1 parent 9daa826 commit 51b2444
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions move.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@

$cur_time_stamp = date("Y-m-d H:i:s");
Tki\LogMove::writeLog($pdo_db, $playerinfo['ship_id'], $sector);
$move_result = $old_db->Execute("UPDATE {$old_db->prefix}ships SET last_login = ?," .
"turns = turns - 1, turns_used = turns_used + 1," .
"sector = ? WHERE ship_id = ?;", array($cur_time_stamp, $sector, $playerinfo['ship_id']));
$move_result = $old_db->Execute("UPDATE {$old_db->prefix}ships " .
"SET last_login = ?, " .
"turns = turns - 1, " .
"turns_used = turns_used + 1, " .
"sector = ? WHERE ship_id = ?;",
array($cur_time_stamp, $sector, $playerinfo['ship_id']));
Tki\Db::logDbErrors($pdo_db, $move_result, __LINE__, __FILE__);
if (!$move_result)
{
Expand Down

0 comments on commit 51b2444

Please sign in to comment.