From b2cdd5f18498ac8b9a438b8a4ca49fd1d477dcb5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 26 Sep 2010 14:26:07 -0400
Subject: [PATCH] 

---
 install/lib/installer_base.lib.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index d31f353..e330525 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -234,9 +234,10 @@
 		
 		//** Get the database version number based on the patchfiles
 		$found = true;
+		$current_db_version = 1;
 		while($found == true) {
 			$next_db_version = intval($current_db_version + 1);
-			$patch_filename = realpath(dirname(__FILE__).'/../../').'/sql/incremental/upd_'.str_pad($next_db_version, 4, '0', STR_PAD_LEFT).'.sql';
+			$patch_filename = realpath(dirname(__FILE__).'/../').'/sql/incremental/upd_'.str_pad($next_db_version, 4, '0', STR_PAD_LEFT).'.sql';
 			if(is_file($patch_filename)) {
 				$current_db_version = $next_db_version;
 			} else {

--
Gitblit v1.9.1