mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Fix issue processwire/processwire-issues#1748
This commit is contained in:
@@ -495,6 +495,7 @@ class Modules extends WireArray {
|
|||||||
if(!isset($this->moduleNames[$moduleID])) {
|
if(!isset($this->moduleNames[$moduleID])) {
|
||||||
return empty($options['returnError']) ? null : "Unable to find module ID $moduleID";
|
return empty($options['returnError']) ? null : "Unable to find module ID $moduleID";
|
||||||
}
|
}
|
||||||
|
$key = $this->moduleNames[$moduleID];
|
||||||
} else {
|
} else {
|
||||||
$moduleID = 0;
|
$moduleID = 0;
|
||||||
$key = wireClassName($key, false);
|
$key = wireClassName($key, false);
|
||||||
|
Reference in New Issue
Block a user