Fixed warning spam in SqlBagOStuff.
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 16 Sep 2012 17:56:52 +0000 (10:56 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 16 Sep 2012 17:56:52 +0000 (10:56 -0700)
Change-Id: Iac573980596349deab757eac859d9e28dc2963b6

includes/objectcache/SqlBagOStuff.php

index a3d2d89..54051dc 100644 (file)
@@ -163,7 +163,7 @@ class SqlBagOStuff extends BagOStuff {
         */
        public function get( $key ) {
                $values = $this->getMulti( array( $key ) );
-               return $values[$key];
+               return array_key_exists( $key, $values ) ? $values[$key] : false;
        }
 
        /**