+
',
@@ -208,16 +210,16 @@ function getLanguagesList(): array
$viewArgs = [
'title' => $openemr_name,
- 'displayLanguage' => ($GLOBALS["language_menu_login"] && (count($languageList) != 1)) ? true : false,
+ 'displayLanguage' => $GLOBALS["language_menu_login"] && (count($languageList) != 1),
'defaultLangID' => $defaultLanguage['id'],
'defaultLangName' => $defaultLanguage['language'],
'languageList' => $languageList,
'relogin' => $relogin,
- 'loginFail' => (isset($_SESSION["loginfailure"]) && $_SESSION["loginfailure"] == 1) ? true : false,
- 'displayFacilities' => ($GLOBALS["login_into_facility"]) ? true : false,
+ 'loginFail' => isset($_SESSION["loginfailure"]) && $_SESSION["loginfailure"] == 1,
+ 'displayFacilities' => (bool)$GLOBALS["login_into_facility"],
'facilityList' => $facilities,
'facilitySelected' => $facilitySelected,
- 'displayGoogleSignin' => (!empty($GLOBALS['google_signin_enabled']) && !empty($GLOBALS['google_signin_client_id'])) ? true : false,
+ 'displayGoogleSignin' => !empty($GLOBALS['google_signin_enabled']) && !empty($GLOBALS['google_signin_client_id']),
'googleSigninClientID' => $GLOBALS['google_signin_client_id'],
'displaySmallLogo' => $displaySmallLogo,
'smallLogoOne' => $smallLogoOne,
@@ -226,7 +228,7 @@ function getLanguagesList(): array
'displayTagline' => $GLOBALS['show_tagline_on_login'],
'tagline' => $GLOBALS['login_tagline_text'],
'displayAck' => $GLOBALS['display_acknowledgements_on_login'],
- 'hasSession' => (session_name()) ? true : false,
+ 'hasSession' => (bool)session_name(),
'cookieText' => $cookie,
'regTranslations' => $regTranslations,
'regConstants' => json_encode(['webroot' => $GLOBALS['webroot']]),
diff --git a/interface/patient_file/encounter/find_code_dynamic_ajax.php b/interface/patient_file/encounter/find_code_dynamic_ajax.php
index 87c4166fafb..6c4929ea1d5 100644
--- a/interface/patient_file/encounter/find_code_dynamic_ajax.php
+++ b/interface/patient_file/encounter/find_code_dynamic_ajax.php
@@ -339,7 +339,8 @@ function genFieldIdString($row)
$arow[] = $row['title'];
} else {
$arow[] = str_replace('|', ':', rtrim($row['code'], '|'));
- $arow[] = $row['description'];
+ $arow[] = $row['description'] ?? "";
+ $arow[] = $row['modifier'] ?? "";
}
$out['aaData'][] = $arow;
}