From 98c207742a9f8b4382513bc8795fd7e5cf35de34 Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 23 Aug 2002 20:15:30 +0000 Subject: [PATCH] Seems to be using a PHP 4.1 only function... changing code so also the PHP 4.0 syntax can be used. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3445 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/listcommands/setup.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/listcommands/setup.php b/plugins/listcommands/setup.php index 9fbc1bf4..e6df69d7 100644 --- a/plugins/listcommands/setup.php +++ b/plugins/listcommands/setup.php @@ -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; } -- 2.25.1