From 4b004068c072c6970b6db07fb7e4a6b487296bb4 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 6 May 2016 11:25:56 -0700 Subject: [PATCH] MemcachedClient: Always return an array from get_multi(), don't return false MemcachedPhpBagOStuff::getMulti() wraps around this method directly, so get_multi() returning false was causing it to violate BagOStuff's requirement that getMulti() always return an array. Change-Id: Ia8f076323aed5b4a12de82d519eb530ed29d7060 --- includes/libs/objectcache/MemcachedClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/objectcache/MemcachedClient.php b/includes/libs/objectcache/MemcachedClient.php index 59322b676a..668135d070 100644 --- a/includes/libs/objectcache/MemcachedClient.php +++ b/includes/libs/objectcache/MemcachedClient.php @@ -487,7 +487,7 @@ class MemcachedClient { */ public function get_multi( $keys ) { if ( !$this->_active ) { - return false; + return array(); } if ( isset( $this->stats['get_multi'] ) ) { -- 2.20.1