Skip to content

Commit 57adc63

Browse files
committed
Fix variable pass by reference error
1 parent acdf847 commit 57adc63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libraries/Event.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ public function refresh() {
220220
$cache_val = Common::$cache->get( $cache_key );
221221

222222
if ( $cache_val !== false ) {
223-
return self::normalize( unserialize( $cache_val ) , $this );
223+
$cache_val = unserialize( $cache_val );
224+
return self::normalize( $cache_val , $this );
224225
}
225226

226227
if ( !isset( Common::$database ) ) {

0 commit comments

Comments
 (0)