Fix. Do not display error message if exesute returns `0` (#1939)

This commit is contained in:
Alexey Melnichuk 2016-09-22 18:17:02 +03:00 committed by FusionPBX
parent 20fc3488e0
commit 730d9abb18
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
$sql = "delete from v_group_permissions where ";
$sql .= "group_name = '".$unprotected_group_name."' ";
$sql .= "and domain_uuid ".(($unprotected_domain_uuid != '') ? " = '".$unprotected_domain_uuid."' " : " is null ");
if (!$db->exec($sql)) {
if (false === $db->exec($sql)) {
//echo $db->errorCode() . "<br>";
$info = $db->errorInfo();
print_r($info);