Explorar o código

Fix logic I mixed up.

Thijs Kinkhorst %!s(int64=22) %!d(string=hai) anos
pai
achega
8fdfe7f302
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      plugins/listcommands/setup.php

+ 2 - 1
plugins/listcommands/setup.php

@@ -42,7 +42,8 @@ function plugin_listcommands_menu() {
 	/* I don't know this action... skip it */
 	/* I don't know this action... skip it */
 	if ( ( function_exists('array_key_exists') &&       /* PHP >= 4.1 */
 	if ( ( function_exists('array_key_exists') &&       /* PHP >= 4.1 */
                !array_key_exists($cmd, $fieldsdescr) ) ||
                !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;
             continue;
         }
         }