Time to stop coding for tonight. Making this kind of terrible bugs is bad.
[squirrelmail.git] / 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;
         }