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 856e8a0..1a6344b 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;
     }