Reorder so that wfProfileOut() is the last sentence before the return.
authorPlatonides <platonides@users.mediawiki.org>
Sun, 6 Mar 2011 23:29:29 +0000 (23:29 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 6 Mar 2011 23:29:29 +0000 (23:29 +0000)
includes/objectcache/MemcachedClient.php

index 824e6fa..2cb3b29 100644 (file)
@@ -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;
        }
 
        // }}}