+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
* $Id$
*
*/
* @param bool $allStatus
*
* @return array
- * array reference of all membership statuses if any
+ * array reference of all membership statuses if any
*/
public static function &membershipStatus($id = NULL, $cond = NULL, $column = 'name', $force = FALSE, $allStatus = FALSE) {
if (self::$membershipStatus === NULL) {
- self::$membershipStatus = array();
+ self::$membershipStatus = [];
}
$cacheKey = $column;
if (isset(self::$$name)) {
self::$$name = NULL;
}
+ // The preferred source of membership pseudoconstants is in fact the Core class.
+ // which buildOptions accesses - better flush that too.
+ CRM_Core_PseudoConstant::flush();
}
}