Update database.php
Only use the $_SESSION['domain_uuid'] if it is set. It's not set when using from the command line.
This commit is contained in:
@@ -62,7 +62,7 @@ include "root.php";
|
|||||||
* Called when the object is created
|
* Called when the object is created
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
if (!isset($this->domain_uuid)) {
|
if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) {
|
||||||
$this->domain_uuid = $_SESSION['domain_uuid'];
|
$this->domain_uuid = $_SESSION['domain_uuid'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user