diff --git a/discovery.php b/discovery.php index f89a488b9..09e0bb38b 100755 --- a/discovery.php +++ b/discovery.php @@ -56,7 +56,7 @@ if (file_exists('.svn')) { echo("Applying database updates to from r$db_rev to r" . trim($dbu_rev) . "...\n"); shell_exec("scripts/update-sql.php database-update.sql"); - if ($dbrev == 0) + if ($db_rev == 0) { mysql_query("INSERT INTO dbSchema VALUES ($dbu_rev)"); }