Merge pull request #900 from dlobo/CRM-12588
[civicrm-core.git] / CRM / Mailing / PseudoConstant.php
index 37b079aae90de0342d8ea5f4b09fa7f06111908e..0a36721210ac5ad891d35391c6b65994a5dea31c 100644 (file)
@@ -240,7 +240,9 @@ class CRM_Mailing_PseudoConstant extends CRM_Core_PseudoConstant {
    *
    */
   public static function flush($name) {
-    self::$$name = NULL;
+   if (isset(self::$$name)) {
+      self::$$name = NULL;
+    }
   }
 }