* Database replication lag doesn't cause all action=edit requests to return the
nochange flag any more
* (bug 15392) ApiFormatBase::formatHTML now uses $wgUrlProtocols.
-* (bug 15444) action=edit returned "Unknown error: ``AS_END''" where it should
+* (bug 15444) action=edit returns "Unknown error: ``AS_END''" where it should
return just "Unknown error"
+* (bug 15448) YAML output returns empty values instead of 0
=== Languages updated in 1.14 ===
if (is_int($key)) {
// It's a sequence
- if ($value)
+ if ($value !== '' && !is_null($value))
$string = $spaces.'- '.$value."\n";
else
$string = $spaces . "-\n";
} else {
// It's mapped
- if ($value)
- $string = $spaces.$key.': '.$value."\n";
+ if ($value !== '' && !is_null($value))
+ $string = $spaces . $key . ': ' . $value . "\n";
else
$string = $spaces . $key . ":\n";
}
$array = $array + $this->_toType($v);
}
$value = $array;
- } elseif (strtolower($value) == 'null' or $value == '' or $value == '~') {
+ } elseif (strtolower($value) == 'null' or $value === '' or $value == '~') {
$value = NULL;
} elseif (ctype_digit($value)) {
$value = (int)$value;