http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93767
Revision: 93767 Author: aaron Date: 2011-08-02 16:33:06 +0000 (Tue, 02 Aug 2011) Log Message: ----------- Do r93697 change properly, to avoid loose-typing problems if this ends up getting used for non-objects. Modified Paths: -------------- trunk/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php Modified: trunk/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php =================================================================== --- trunk/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php 2011-08-02 16:31:22 UTC (rev 93766) +++ trunk/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php 2011-08-02 16:33:06 UTC (rev 93767) @@ -50,7 +50,7 @@ public function load( $objectId ) { global $wgMemc; $value = $wgMemc->get( $this->encode( $this->namespace, $objectId ) ); - return $value ? $value : null; // WURFL expects null on cache miss + return ( $value !== false ) ? $value : null; // WURFL expects null on cache miss } public function clear() { _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs