Update database.php

This commit is contained in:
FusionPBX 2018-05-31 09:15:23 -06:00 committed by GitHub
parent a55a396ead
commit aaa1d191b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1968,7 +1968,12 @@ include "root.php";
$sql .= "values ";
$sql .= "(";
$sql .= "'".uuid()."', ";
$sql .= "'".$this->domain_uuid."', ";
if (is_null($this->domain_uuid)) {
$sql .= "null, ";
}
else {
$sql .= "'".$this->domain_uuid."', ";
}
if (strlen($user_uuid) > 0) {
$sql .= "'".$user_uuid."', ";
}