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:
98b6374
)
Use isset() instead of array_key_exists()
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 27 Jan 2010 19:14:18 +0000
(19:14 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 27 Jan 2010 19:14:18 +0000
(19:14 +0000)
includes/Html.php
patch
|
blob
|
history
diff --git
a/includes/Html.php
b/includes/Html.php
index
a17e033
..
ed06411
100644
(file)
--- a/
includes/Html.php
+++ b/
includes/Html.php
@@
-513,9
+513,9
@@
class Html {
global $wgHtml5;
$attribs['name'] = $name;
if ( !$wgHtml5 ) {
- if ( !
array_key_exists('cols', $attribs
) )
+ if ( !
isset( $attribs['cols']
) )
$attribs['cols'] = "";
- if ( !
array_key_exists('rows', $attribs
) )
+ if ( !
isset( $attribs['rows']
) )
$attribs['rows'] = "";
}
return self::element( 'textarea', $attribs, $value );