CRM-14120 e-notice error due to returning NULL not by reference, From what I recall...
authorEileen McNaughton <eileen@fuzion.co.nz>
Thu, 23 Jan 2014 20:57:27 +0000 (09:57 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Thu, 23 Jan 2014 20:57:27 +0000 (09:57 +1300)
----------------------------------------
* CRM-14120: Notice Notice: Only variable references should be returned by reference in event() (line 122 of /srv/www/womenslibrary.org.uk/sites/all/modules/civicrm/CRM/Event/PseudoConstant.php).
  http://issues.civicrm.org/jira/browse/CRM-14120

CRM/Event/PseudoConstant.php

index 7dc8d73bf3ca97ceb4b5ccb5649182a2d4f361f4..9e069238788496784f8b3bf594e6d76e938095d7 100644 (file)
@@ -97,10 +97,10 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
    *
    * @access public
    *
-   * @return array - array reference of all events if any
+   * @return array - array of all events if any
    * @static
    */
-  public static function &event($id = NULL, $all = FALSE, $condition = NULL) {
+  public static function event($id = NULL, $all = FALSE, $condition = NULL) {
     $key = "{$id}_{$all}_{$condition}";
 
     if (!isset(self::$event[$key])) {