Check whether operands are identical. Otherwise 0 makes the condition true

This commit is contained in:
Madhura Jayaratne 2013-03-25 21:03:52 +05:30
parent 4d829c9204
commit 8254d3eaf6

View File

@ -186,7 +186,7 @@ $htmlString .= '<div style="float:left; padding-left:40px;">'
$yaxis = null;
foreach ($keys as $idx => $key) {
if ($yaxis == null) {
if ($yaxis === null) {
$htmlString .= '<option value="' . htmlspecialchars($idx)
. '" selected="selected">' . htmlspecialchars($key) . '</option>';
$yaxis = $idx;