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:
3fd544d
)
Avoid 'undefined index' notices
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 24 Nov 2004 22:31:48 +0000
(22:31 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 24 Nov 2004 22:31:48 +0000
(22:31 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
7f019f7
..
8d9ab03
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-915,8
+915,10
@@
class Title {
$res = $dbr->selectField( 'cur', 'cur_restrictions', 'cur_id='.$id );
$this->loadRestrictions( $res );
}
- $result = $this->mRestrictions[$action];
- return $result ? $result : array();
+ if( isset( $this->mRestrictions[$action] ) ) {
+ return $this->mRestrictions[$action];
+ }
+ return array();
}
/**