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:
parent
c2bf8cf761
commit
c8e51bd89e
|
|
@ -62,7 +62,7 @@ include "root.php";
|
|||
* Called when the object is created
|
||||
*/
|
||||
public function __construct() {
|
||||
if (!isset($this->domain_uuid)) {
|
||||
if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) {
|
||||
$this->domain_uuid = $_SESSION['domain_uuid'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue