1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-01 18:49:18 +01:00
This commit is contained in:
Thomas Zilio 2018-10-30 16:31:06 +01:00
parent 03eb2ca8c6
commit 809eb95380
2 changed files with 4 additions and 2 deletions

View File

@ -352,6 +352,7 @@ class Modules
*/
public static function filepath($element, $file)
{
return self::get($element)->filepath($file);
$element = self::get($element);
return $element ? $element->filepath($file) : null;
}
}

View File

@ -93,6 +93,7 @@ class Plugins
*/
public static function filepath($element, $file)
{
return self::get($element)->filepath($file);
$element = self::get($element);
return $element ? $element->filepath($file) : null;
}
}