Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/library/WURFL/Storage/Mwmemcache.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | return $wgMemc->set( $this->encode( $this->namespace, $objectId ), $object, $this->expiration ); |
35 | 35 | } |
36 | 36 | |
37 | | - |
| 37 | + |
38 | 38 | /** |
39 | 39 | * Load the object. |
40 | 40 | * |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | public function load($objectId) { |
46 | 46 | global $wgMemc; |
47 | 47 | $value = $wgMemc->get( $this->encode( $this->namespace, $objectId ) ); |
48 | | - return $value; |
| 48 | + return $value ? $value : null; // WURFL expects null on cache miss |
49 | 49 | } |
50 | 50 | |
51 | 51 | |