CRM-14191 - fix notice in FourFour.php upgrade.
authorDave Greenberg <dave@civicrm.org>
Tue, 15 Apr 2014 23:37:32 +0000 (16:37 -0700)
committerDave Greenberg <dave@civicrm.org>
Tue, 15 Apr 2014 23:37:32 +0000 (16:37 -0700)
----------------------------------------
* CRM-14191:
  https://issues.civicrm.org/jira/browse/CRM-14191

CRM/Upgrade/Incremental/php/FourFour.php

index ba26bcf81176e1af0fafc1b80a0f1b30f7ab5af2..f01e297af3a9b68c71959dfb6a64514dd013f418 100644 (file)
@@ -519,7 +519,10 @@ CREATE TABLE IF NOT EXISTS `civicrm_word_replacement` (
         $params["domain_id"] = $value["id"];
         $params["options"] = array('wp-rebuild' => $rebuildEach);
         // unserialize word match string
-        $localeCustomArray = unserialize($value["locale_custom_strings"]);
+        $localeCustomArray = array();
+        if (!empty($value["locale_custom_strings"])) {
+          $localeCustomArray = unserialize($value["locale_custom_strings"]);
+        }
         if (!empty($localeCustomArray)) {
           $wordMatchArray = array();
           // Traverse Language array