Seems to be using a PHP 4.1 only function... changing code so also the PHP 4.0 syntax...
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 20:15:30 +0000 (20:15 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 20:15:30 +0000 (20:15 +0000)
used.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3445 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/listcommands/setup.php

index 9fbc1bf43f4a45758829ae2c162752e988f12cf0..e6df69d77dfda61d06d78ec40dd12b0d48d41204 100644 (file)
@@ -40,7 +40,12 @@ function plugin_listcommands_menu() {
     foreach ($message->rfc822_header->mlist as $cmd => $actions) {
 
        /* I don't know this action... skip it */
-       if(!array_key_exists($cmd, $fieldsdescr)) {
+        /* grrr PHP keeps changing their syntax... */
+        if( function_exists('array_key_exists') ) {
+            if(!array_key_exists($cmd, $fieldsdescr)) {
+                continue;
+            }
+        } elseif ( !key_exists($cmd, $fieldsdescr) ) {
             continue;
         }