added a debug-message for the search

This commit is contained in:
Ralf Becker 2003-03-27 23:43:37 +00:00
parent 3d394c5b50
commit f7e3a07b05

View File

@ -370,7 +370,6 @@
$tpl = new soetemplate;
$tpl->db->query($sql,__LINE__,__FILE__);
$result = array();
while ($tpl->db->next_record())
{
@ -381,6 +380,12 @@
$result[] = $tpl->as_array();
}
}
if ($this->debug)
{
echo "<p>soetemplate::search('$name') sql='$sql'</p>\n<pre>\n";
print_r($result);
echo "</pre>\n";
}
return $result;
}