fix svn db reloading

git-svn-id: http://www.observium.org/svn/observer/trunk@710 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-17 00:42:48 +00:00
parent c8ee7bc264
commit 19b497dcac

View File

@@ -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)");
}