/**
* setup.php
*
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Implementation of RFC 2369 for SquirrelMail.
foreach ($message->rfc822_header->mlist as $cmd => $actions) {
/* I don't know this action... skip it */
- /* grrr PHP keeps changing their syntax... */
- if( function_exists('array_key_exists') ) {
- if(!array_key_exists($cmd, $fieldsdescr)) {
- continue;
- }
- } elseif ( !key_exists($cmd, $fieldsdescr) ) {
+ if ( ( function_exists('array_key_exists') && /* PHP >= 4.1 */
+ !array_key_exists($cmd, $fieldsdescr) ) ||
+ ( function_exists('key_exists') &&
+ !key_exists($cmd, $fieldsdescr) ) /* PHP == 4.0.6 */
+ ) {
continue;
}