Fixed SM version detection bug - wasn't going to hit us until v2.0, but anyway...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 30 Jul 2004 13:10:14 +0000 (13:10 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 30 Jul 2004 13:10:14 +0000 (13:10 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7784 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/global.php

index 856e8a0105e0d59f5d9fa5ec4340eef6143a386c..1a6344bc2b59f7440c8afad18291b839b79a63d3 100644 (file)
@@ -89,8 +89,10 @@ function check_sm_version($a = 0, $b = 0, $c = 0)
     global $SQM_INTERNAL_VERSION;
     if ( !isset($SQM_INTERNAL_VERSION) ||
          $SQM_INTERNAL_VERSION[0] < $a ||
-        $SQM_INTERNAL_VERSION[1] < $b ||
-        ( $SQM_INTERNAL_VERSION[1] == $b &&
+         ( $SQM_INTERNAL_VERSION[0] == $a &&
+           $SQM_INTERNAL_VERSION[1] < $b) ||
+         ( $SQM_INTERNAL_VERSION[0] == $a &&
+           $SQM_INTERNAL_VERSION[1] == $b &&
            $SQM_INTERNAL_VERSION[2] < $c ) ) {
         return FALSE;
     }