From 8ca02215a8fa1f5448b3d7fb02ea56257f7ce880 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 16 Aug 2008 20:52:56 +0000 Subject: [PATCH] API: Fixing an E_NOTICE reported by Wikia. Can't reproduce locally, but an extra @ can't hurt. --- includes/api/ApiQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index f14b462c31..8199070e87 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -229,8 +229,8 @@ class ApiQuery extends ApiBase { * Create instances of all modules requested by the client */ private function InstantiateModules(&$modules, $param, $moduleList) { - $list = $this->params[$param]; - if (isset ($list)) + $list = @$this->params[$param]; + if (!is_null ($list)) foreach ($list as $moduleName) $modules[] = new $moduleList[$moduleName] ($this, $moduleName); } -- 2.20.1