Merge pull request #14077 from pradpnayak/AutoComplete
[civicrm-core.git] / CRM / Core / BAO / PreferencesDate.php
index ffe16a16fa3763c33a21f19eb91797346ede07b4..80f963badb399a7ea350dea7b54b24200da6bb99 100644 (file)
@@ -34,8 +34,9 @@ class CRM_Core_BAO_PreferencesDate extends CRM_Core_DAO_PreferencesDate {
 
   /**
    * Static holder for the default LT.
+   * @var string
    */
-  static $_defaultPreferencesDate = NULL;
+  public static $_defaultPreferencesDate = NULL;
 
   /**
    * Class constructor.
@@ -108,7 +109,7 @@ SET    time_format = %1
 WHERE  time_format IS NOT NULL
 AND    time_format <> ''
 ";
-    $sqlParams = array(1 => array($newValue, 'String'));
+    $sqlParams = [1 => [$newValue, 'String']];
     CRM_Core_DAO::executeQuery($query, $sqlParams);
   }