Fix bug #3071816 "First column in a SQL result missing", reported by Yilmaz ULKUSAL.
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Tue, 21 Sep 2010 20:10:28 +0000 (22:10 +0200)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Tue, 21 Sep 2010 20:10:28 +0000 (22:10 +0200)
display.php

index f47c1b4fe5e0b5d36746ab6f967746dffb0f4990..81d5aae52af873cf9990d6770f7df3cfb77400c1 100644 (file)
 
                foreach ($rs->fields as $k => $v) {
 
-                       if (($k == $data->id) && ( !($withOid && $conf['show_oids']) )) {
+                       if (($k === $data->id) && ( !($withOid && $conf['show_oids']) )) {
                                $j++;
                                continue;
                        }
                foreach ($rs->fields as $k => $v) {
                        $finfo = $rs->fetchField($j++);
 
-                       if (($k == $data->id) && ( !($withOid && $conf['show_oids']) )) continue;
+                       if (($k === $data->id) && ( !($withOid && $conf['show_oids']) )) continue;
                        elseif ($v !== null && $v == '') echo "<td>&nbsp;</td>";
                        else {
                                echo "<td style=\"white-space:nowrap;\">";