r93767 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r93766
|
r93767
|
r93768
>
Date:
16:33, 2 August 2011
Author:
aaron
Status:
ok
Tags:
Comment:
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) (
history
)
Diff
[
purge
]
Index: trunk/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php
—
—
@@ -50,7 +50,7 @@
51
51
public function load( $objectId ) {
52
52
global $wgMemc;
53
53
$value = $wgMemc->get( $this->encode( $this->namespace, $objectId ) );
54
- return $value ? $value : null; // WURFL expects null on cache miss
54
+ return ( $value !== false ) ? $value : null; // WURFL expects null on cache miss
55
55
}
56
56
57
57
public function clear() {
Follow-up revisions
Revision
Commit summary
Author
Date
r93773
MFT
r93767
reedy
18:19, 2 August 2011
r104910
1.18wmf1: MFT
r93767
-
r104893
preilly
22:52, 1 December 2011
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r93697
Ported
r93695
to /trunk
aaron
00:27, 2 August 2011
Status & tagging log
18:13, 2 August 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r93767
[
removed:
new
added:
ok]