Avoid undefined class variables
This commit is contained in:
@@ -49,7 +49,7 @@ require_once("boot.php");
|
||||
|
||||
global $a;
|
||||
|
||||
if (is_null($a)) {
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ require_once('boot.php');
|
||||
function cli_startup() {
|
||||
global $a;
|
||||
|
||||
if (is_null($a)) {
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
|
||||
@@ -1760,7 +1760,7 @@ function db_definition() {
|
||||
function dbstructure_run(&$argv, &$argc) {
|
||||
global $a;
|
||||
|
||||
if (is_null($a)) {
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,9 @@ function poller_run($argv, $argc){
|
||||
|
||||
$poller_up_start = microtime(true);
|
||||
|
||||
$a = new App(dirname(__DIR__));
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
require_once ".htconfig.php";
|
||||
require_once "include/dba.php";
|
||||
|
||||
@@ -9,7 +9,7 @@ require_once("include/threads.php");
|
||||
function shadowupdate_run(&$argv, &$argc){
|
||||
global $a;
|
||||
|
||||
if (is_null($a)) {
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user