CRM-13296 fix enotice
authoreileen <eileen@fuzion.co.nz>
Fri, 30 Aug 2013 05:09:48 +0000 (17:09 +1200)
committereileen <eileen@fuzion.co.nz>
Fri, 30 Aug 2013 05:09:48 +0000 (17:09 +1200)
CRM/Utils/Token.php

index f5a3985f832f0359452b6fe847371c8d4831e3eb..7f922bdf064522210d3bdeef6b407821294602f3 100644 (file)
@@ -1333,7 +1333,7 @@ class CRM_Utils_Token {
    */
   protected static function _buildMembershipTokens() {
     $key = 'membership';
-    if (self::$_tokens[$key] == NULL) {
+    if (!isset(self::$_tokens[$key]) || self::$_tokens[$key] == NULL) {
       $membershipTokens = array();
       $tokens = CRM_Core_SelectValues::membershipTokens();
       foreach ($tokens as $token => $dontCare) {