1
0
Fork 0

Merge pull request #6123 from friendica/fabrixxm-patch-1

Fix Notice in LegacyModule
This commit is contained in:
Tobias Diekershoff 2018-11-13 15:09:00 +01:00 committed by GitHub
commit f8eb38b275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,8 @@ class LegacyModule extends BaseModule
$function_name = static::$moduleName . '_' . $function_suffix;
if (\function_exists($function_name)) {
return $function_name(self::getApp());
$a = self::getApp();
return $function_name($a);
} else {
return parent::{$function_suffix}();
}