Przeglądaj źródła

Fix logic I mixed up.

Thijs Kinkhorst 22 lat temu
rodzic
commit
8fdfe7f302
1 zmienionych plików z 2 dodań i 1 usunięć
  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 */
 	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;
         }