Avoid undefined class variables
This commit is contained in:
parent
a29b7e7153
commit
225eea2ca6
10 changed files with 25 additions and 9 deletions
5
boot.php
5
boot.php
|
|
@ -510,6 +510,11 @@ function startup() {
|
|||
*/
|
||||
function get_app() {
|
||||
global $a;
|
||||
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
return $a;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue