From f7e3a07b05fb506119a421d5e7a8c063ec2be3e7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 27 Mar 2003 23:43:37 +0000 Subject: [PATCH] added a debug-message for the search --- etemplate/inc/class.soetemplate.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.soetemplate.inc.php b/etemplate/inc/class.soetemplate.inc.php index f5bc95dd39..e950deae50 100644 --- a/etemplate/inc/class.soetemplate.inc.php +++ b/etemplate/inc/class.soetemplate.inc.php @@ -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 "

soetemplate::search('$name') sql='$sql'

\n
\n";
+				print_r($result);
+				echo "
\n"; + } return $result; }