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:
28e11ec
)
PHP Sucks. Having a value of 0 was making $value appear as false, so you couldn't...
author
Andrew Garrett
<werdna@users.mediawiki.org>
Wed, 20 Aug 2008 12:30:31 +0000
(12:30 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Wed, 20 Aug 2008 12:30:31 +0000
(12:30 +0000)
includes/Xml.php
patch
|
blob
|
history
diff --git
a/includes/Xml.php
b/includes/Xml.php
index
1551878
..
05e93bc
100644
(file)
--- a/
includes/Xml.php
+++ b/
includes/Xml.php
@@
-674,7
+674,8
@@
class XmlSelect {
}
public function addOption( $name, $value = false ) {
- $value = $value ? $value : $name;
+ // Stab stab stab
+ $value = ($value !== false) ? $value : $name;
$this->options[] = Xml::option( $name, $value, $value === $this->default );
}