Index: trunk/kernel/include/customfield.php =================================================================== diff -u -r13 -r104 --- trunk/kernel/include/customfield.php (.../customfield.php) (revision 13) +++ trunk/kernel/include/customfield.php (.../customfield.php) (revision 104) @@ -83,9 +83,10 @@ { $this->Clear(); $sql = "SELECT * FROM ".$this->SourceTable." WHERE Type=".$this->Type; - if((int)$GLOBALS["debuglevel"]) - echo $sql."
\n"; - $rs = $this->adodbConnection->Execute($sql); + if($this->debuglevel > 1) + echo $sql."
\n"; + $rs = $this->adodbConnection->Execute($sql); + while($rs && !$rs->EOF) { $data = $rs->fields;