From fe3e41b10041a28ab73e52fbcf99c5cfbfc3a54c Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 5 Jan 2002 15:33:46 +0000 Subject: [PATCH] hide debug --- phpgwapi/inc/class.common.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 220a197e76..7b09258037 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -51,14 +51,15 @@ @param $str1 @param $str2 */ - function cmp_version($str1,$str2) + function cmp_version($str1,$str2,$debug=False) { ereg("([0-9]+)\.([0-9]+)\.([0-9]+)[a-zA-Z]*([0-9]*)",$str1,$regs); ereg("([0-9]+)\.([0-9]+)\.([0-9]+)[a-zA-Z]*([0-9]*)",$str2,$regs2); - //echo "
$regs[0] - $regs2[0]"; + if($debug) { echo "
$regs[0] - $regs2[0]"; } + for($i=1;$i<5;$i++) { - echo "
$i: $regs[$i] - $regs2[$i]"; + if($debug) { echo "
$i: $regs[$i] - $regs2[$i]"; } if($regs2[$i] == $regs[$i]) { continue;