Update settings using real boolean (#7165)

* update settings using real boolean
This commit is contained in:
frytimo
2024-10-22 18:55:19 -06:00
committed by GitHub
parent 7db445f825
commit 557de4b744
4 changed files with 68 additions and 38 deletions
+1 -1
View File
@@ -887,7 +887,7 @@ if (!$included) {
$sql .= "and cp.phone_type_fax = 1 ";
$sql .= "and cp.phone_number is not null ";
$sql .= "and cp.phone_number <> '' ";
if ($setting->get('contact','permissions') == "true") {
if ($setting->get('contact','permissions', false)) {
if (is_array($user_group_uuids) && @sizeof($user_group_uuids) != 0) {
//only show contacts assigned to current user's group(s) and those not assigned to any group
$sql .= "and (";