From 135d0998b6e539d7696c322962176c0fa3dd9477 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 12 Jan 2011 01:17:31 +0000 Subject: [PATCH] Not sure why I originally used array_key_exists(). Switch for isset() --- includes/api/ApiQuery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 0f1d63dac8..89689d80c2 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -190,15 +190,15 @@ class ApiQuery extends ApiBase { * @return mixed string or null */ function getModuleType( $moduleName ) { - if ( array_key_exists ( $moduleName, $this->mQueryPropModules ) ) { + if ( isset( $this->mQueryPropModules[$moduleName] ) ) { return 'prop'; } - if ( array_key_exists ( $moduleName, $this->mQueryListModules ) ) { + if ( isset( $this->mQueryListModules[$moduleName] ) ) { return 'list'; } - if ( array_key_exists ( $moduleName, $this->mQueryMetaModules ) ) { + if ( isset( $this->mQueryMetaModules[$moduleName] ) ) { return 'meta'; } -- 2.20.1