JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
db_reposition(): fixed error messages
[wfpl.git] / db.php
diff --git a/db.php b/db.php
index 4650cb5..c93e5f3 100644 (file)
--- a/db.php
+++ b/db.php
@@ -394,7 +394,7 @@ function db_reposition_respace($table, $field) {
 # $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;
        }