# $pretty is used in error messages to refer to the row, it defaults to whatever you pass for $table.
function db_reposition($table, $row_id, $new_pos, $field = 'ord', $pretty = 'same as $table', $renumbered_already = false) {
- if($pretty = 'same as $table') {
+ if($pretty == 'same as $table') {
$pretty = $table;
}