upgrade.php: ensure config table has an initial version entry

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@423 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 17 years ago
parent 41d5ee4ecb
commit 6b34e374ef

@ -87,6 +87,7 @@ if($r['rows'] == 1) {
$row = db_array($rs);
$version = $row['value'];
} else {
db_query_parsed("INSERT INTO config (name, value) VALUES ('version', '0')", 0, '');
$version = 0;
}

Loading…
Cancel
Save