Fix get-call for apccache
authorFranky Van Liedekerke <liedekef@telenet.be>
Fri, 12 Aug 2016 11:39:02 +0000 (13:39 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Aug 2016 11:39:02 +0000 (13:39 +0200)
Otherwise a php notice pops up (Notice: Only variable references should be returned by reference) and civicrm doesn't even load then ...

CRM/Utils/Cache/APCcache.php

index 801e3f220ae9efdf1fb32f74ec561bd4b14c14de..967507554d8a9be1684bac02fef96bc82693426c 100644 (file)
@@ -87,7 +87,7 @@ class CRM_Utils_Cache_APCcache implements CRM_Utils_Cache_Interface {
    *
    * @return mixed
    */
-  public function &get($key) {
+  public function get($key) {
     return apc_fetch($this->_prefix . $key);
   }