]> git.mxchange.org Git - friendica.git/commitdiff
Fix Notice in LegacyModule
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 13 Nov 2018 13:37:51 +0000 (14:37 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Nov 2018 13:37:51 +0000 (14:37 +0100)
Notice: Only variables should be passed by reference in src/LegacyModule.php on line 68

src/LegacyModule.php

index 737101b5c287ac911fa2649344bf41218cf423ba..5ef2a0ee612e30a00fb1fc6722736433dbcb9904 100644 (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}();
                }