From 6e4ce0bdf411bb369e1bd5eac92af117d3dc23b2 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Fri, 21 Sep 2007 20:47:25 +0000 Subject: [PATCH] Fix bug setup --- html/admin/setup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/admin/setup.php b/html/admin/setup.php index 15cc47b89..bbfdd10e1 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -168,9 +168,10 @@ function apply_patch($p_cn,$p_name) $MaxVersion=31; for ( $i = 4;$i <= $MaxVersion;$i++) { + $to=$i+1; if ( GetVersion($p_cn) <= $i ) { echo "Patching ".$p_name. - " from the version $i to the version ".GetVersion($p_cn)."
"; + " from the version ".GetVersion($p_cn)." to $to
"; ExecuteScript($p_cn,'sql/patch/upgrade'.$i.'.sql'); if ( DEBUG=='false' ) ob_start();