Merge pull request #14077 from pradpnayak/AutoComplete
[civicrm-core.git] / CRM / Core / BAO / PreferencesDate.php
index 57ec216802c756b5b98ee3769c19fb5758f4914a..80f963badb399a7ea350dea7b54b24200da6bb99 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  */
 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);
   }