Skip to content

Commit b2cdd5f

Browse files
committed
1 parent 4b72c51 commit b2cdd5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,10 @@ public function add_database_server_record() {
234234

235235
//** Get the database version number based on the patchfiles
236236
$found = true;
237+
$current_db_version = 1;
237238
while($found == true) {
238239
$next_db_version = intval($current_db_version + 1);
239-
$patch_filename = realpath(dirname(__FILE__).'/../../').'/sql/incremental/upd_'.str_pad($next_db_version, 4, '0', STR_PAD_LEFT).'.sql';
240+
$patch_filename = realpath(dirname(__FILE__).'/../').'/sql/incremental/upd_'.str_pad($next_db_version, 4, '0', STR_PAD_LEFT).'.sql';
240241
if(is_file($patch_filename)) {
241242
$current_db_version = $next_db_version;
242243
} else {

0 commit comments

Comments
 (0)