dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Simplify checking for widgets on special block page"
[lhc/web/wiklou.git]
/
includes
/
Category.php
diff --git
a/includes/Category.php
b/includes/Category.php
index
3352c2c
..
ca16536
100644
(file)
--- a/
includes/Category.php
+++ b/
includes/Category.php
@@
-299,10
+299,10
@@
class Category {
/**
* Generic accessor
* @param string $key
/**
* Generic accessor
* @param string $key
- * @return
bool
+ * @return
mixed
*/
private function getX( $key ) {
*/
private function getX( $key ) {
- if ( !$this->initialize( self::LAZY_INIT_ROW ) ) {
+ if (
$this->{$key} === null &&
!$this->initialize( self::LAZY_INIT_ROW ) ) {
return false;
}
return $this->{$key};
return false;
}
return $this->{$key};