Update database.php

This commit is contained in:
FusionPBX 2019-08-15 01:54:50 -06:00 committed by GitHub
parent 8acf775ccd
commit 9818dc99c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -52,9 +52,7 @@ class plugin_database {
//$sql .= "and domain_uuid = '".$this->domain_uuid."' ";
}
$sql .= "and (user_enabled = 'true' or user_enabled is null) ";
//echo $sql."<br />\n";
//echo "domain name: ".$this->domain_name;
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement = $db->prepare($sql);
if ($_SESSION["users"]["unique"]["text"] != "global") {
$prep_statement->bindParam(':domain_uuid', $this->domain_uuid);
}