cleanup some plugins to make use of sqgetGlobalVar
[squirrelmail.git] / plugins / listcommands / setup.php
index e055bf89cf56bda0cd03f03ffae1edad7b77e765..04fdb20b999469ec17ba32f39809fb82b5b28f52 100644 (file)
@@ -42,7 +42,8 @@ function plugin_listcommands_menu() {
        /* I don't know this action... skip it */
        if ( ( function_exists('array_key_exists') &&       /* PHP >= 4.1 */
                !array_key_exists($cmd, $fieldsdescr) ) ||
-             !key_exists($cmd, $fieldsdescr)                /* PHP == 4.0.6 */
+             ( function_exists('key_exists') && 
+               !key_exists($cmd, $fieldsdescr) )            /* PHP == 4.0.6 */
         ) {
             continue;
         }