mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-05 13:19:35 -05:00
FormLoader: Define var $file in method scope
- Fixes IDE's message: `varibale $file is probabaly undefined`
This commit is contained in:
parent
95776d309b
commit
95504131d1
1 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ class FormLoader
|
|||
$basedir = $module->getFormDir();
|
||||
$ns = '\\Icinga\\Module\\' . ucfirst($module->getName()) . '\\Forms\\';
|
||||
}
|
||||
|
||||
$file = null;
|
||||
if (preg_match('~^[a-z0-9/]+$~i', $name)) {
|
||||
$parts = preg_split('~/~', $name);
|
||||
$class = ucfirst(array_pop($parts)) . 'Form';
|
||||
|
|
|
|||
Loading…
Reference in a new issue