mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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
|
||||
*/
|
||||
public function __construct() {
|
||||
if (!isset($this->domain_uuid)) {
|
||||
if (!isset($this->domain_uuid) && isset($_SESSION['domain_uuid'])) {
|
||||
$this->domain_uuid = $_SESSION['domain_uuid'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user