r32337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32336‎ | r32337 | r32338 >
Date:20:52, 22 March 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Fix cache check
Modified paths:
  • /trunk/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Gadgets/Gadgets.php
@@ -77,7 +77,7 @@
7878 if ( $forceNewText == NULL ) {
7979 //cached?
8080 $gadgets = $wgMemc->get( $key );
81 - if ( $gadgets !== NULL ) return $gadgets;
 81+ if ( is_string($gadgets) ) return $gadgets;
8282
8383 $g = wfMsgForContentNoTrans( "gadgets-definition" );
8484 if ( wfEmptyMsg( "gadgets-definition", $g ) ) {

Status & tagging log