From: Dave Greenberg Date: Tue, 15 Apr 2014 23:37:32 +0000 (-0700) Subject: CRM-14191 - fix notice in FourFour.php upgrade. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8f3ccaf0bfaae57a5775da63ba041e10b5f8f927;p=civicrm-core.git CRM-14191 - fix notice in FourFour.php upgrade. ---------------------------------------- * CRM-14191: https://issues.civicrm.org/jira/browse/CRM-14191 --- diff --git a/CRM/Upgrade/Incremental/php/FourFour.php b/CRM/Upgrade/Incremental/php/FourFour.php index ba26bcf811..f01e297af3 100644 --- a/CRM/Upgrade/Incremental/php/FourFour.php +++ b/CRM/Upgrade/Incremental/php/FourFour.php @@ -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