From 8f0a89efcb6b3cd5aadcbd986e259c3002ad60b9 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 6 Mar 2011 23:29:29 +0000 Subject: [PATCH] Reorder so that wfProfileOut() is the last sentence before the return. --- includes/objectcache/MemcachedClient.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/objectcache/MemcachedClient.php b/includes/objectcache/MemcachedClient.php index 824e6facb4..2cb3b29bce 100644 --- a/includes/objectcache/MemcachedClient.php +++ b/includes/objectcache/MemcachedClient.php @@ -431,12 +431,12 @@ class MWMemcached { } } - wfProfileOut( __METHOD__ ); + $value = false; if ( isset( $val[$key] ) ) { - return $val[$key]; - } else { - return false; + $value = $val[$key]; } + wfProfileOut( __METHOD__ ); + return $value; } // }}} -- 2.20.1