mirror of
https://github.com/processwire/processwire.git
synced 2025-08-18 04:22:10 +02:00
Fix issue processwire/processwire-issues#852
This commit is contained in:
@@ -3271,7 +3271,9 @@ class Modules extends WireArray {
|
||||
$emptyReturn = $property ? null : array();
|
||||
$className = $class;
|
||||
if(is_object($className)) $className = wireClassName($className->className(), false);
|
||||
if(!$id = $this->moduleIDs[$className]) return $emptyReturn;
|
||||
if(!isset($this->moduleIDs[$className])) return $emptyReturn;
|
||||
$id = $this->moduleIDs[$className];
|
||||
if(!$id) return $emptyReturn;
|
||||
if(!isset($this->configData[$id])) return $emptyReturn; // module has no config data
|
||||
|
||||
if(is_array($this->configData[$id])) {
|
||||
|
Reference in New Issue
Block a user