Merge pull request #12368 from totten/master-cache-schema
[civicrm-core.git] / CRM / Core / Resources.php
index d6e0a2aa614068d34d98eb99a06cc311d8563223..7be010ab6bb151c63538569e20f06813219d62ea 100644 (file)
@@ -690,7 +690,7 @@ class CRM_Core_Resources {
         'filters' => self::getEntityRefFilters(),
       ),
       'ajaxPopupsEnabled' => self::singleton()->ajaxPopupsEnabled,
-      'allowAlertAutodismissal' => Civi::settings()->get('allow_alert_autodismissal'),
+      'allowAlertAutodismissal' => (bool) Civi::settings()->get('allow_alert_autodismissal'),
     );
     print CRM_Core_Smarty::singleton()->fetchWith('CRM/common/l10n.js.tpl', $vars);
     CRM_Utils_System::civiExit();