r93773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93772‎ | r93773 | r93774 >
Date:18:19, 2 August 2011
Author:reedy
Status:ok
Tags:
Comment:
MFT r93767
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php
@@ -51,7 +51,7 @@
5252 public function load( $objectId ) {
5353 global $wgMemc;
5454 $value = $wgMemc->get( $this->encode( $this->namespace, $objectId ) );
55 - return $value ? $value : null; // WURFL expects null on cache miss
 55+ return ( $value !== false ) ? $value : null; // WURFL expects null on cache miss
5656 }
5757
5858 public function clear() {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93767Do r93697 change properly, to avoid loose-typing problems if this ends up get...aaron16:33, 2 August 2011

Status & tagging log