Skip to content

Commit

Permalink
Merge pull request #11107 from totten/master-nav-ser
Browse files Browse the repository at this point in the history
Navigation - Fix serialization error
  • Loading branch information
eileenmcnaughton authored Oct 12, 2017
2 parents 38e3b73 + 290110e commit 5128639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Core/BAO/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ public static function createNavigation($contactID) {
public static function resetNavigation($contactID = NULL) {
$newKey = CRM_Utils_String::createRandom(self::CACHE_KEY_STRLEN, CRM_Utils_String::ALPHANUMERIC);
if (!$contactID) {
$query = "UPDATE civicrm_setting SET value = '$newKey' WHERE name='navigation' AND contact_id IS NOT NULL";
$ser = serialize($newKey);
$query = "UPDATE civicrm_setting SET value = '$ser' WHERE name='navigation' AND contact_id IS NOT NULL";
CRM_Core_DAO::executeQuery($query);
CRM_Core_BAO_Cache::deleteGroup('navigation');
}
Expand Down

0 comments on commit 5128639

Please sign in to comment.