dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25a488e
)
Fixed warning spam in SqlBagOStuff.
author
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 16 Sep 2012 17:56:52 +0000
(10:56 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Sun, 16 Sep 2012 17:56:52 +0000
(10:56 -0700)
Change-Id: Iac573980596349deab757eac859d9e28dc2963b6
includes/objectcache/SqlBagOStuff.php
patch
|
blob
|
history
diff --git
a/includes/objectcache/SqlBagOStuff.php
b/includes/objectcache/SqlBagOStuff.php
index
a3d2d89
..
54051dc
100644
(file)
--- a/
includes/objectcache/SqlBagOStuff.php
+++ b/
includes/objectcache/SqlBagOStuff.php
@@
-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
;
}
/**