From: Platonides Date: Sun, 6 Mar 2011 23:29:29 +0000 (+0000) Subject: Reorder so that wfProfileOut() is the last sentence before the return. X-Git-Tag: 1.31.0-rc.0~31582 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=8f0a89efcb6b3cd5aadcbd986e259c3002ad60b9;p=lhc%2Fweb%2Fwiklou.git Reorder so that wfProfileOut() is the last sentence before the return. --- 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; } // }}}