From 78b99263345cbc567d8883476bcc2ac32cca2b4b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 5 Feb 2006 20:25:08 +0000 Subject: [PATCH] In _load(), we need to use query_first() not just query() --- template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.php b/template.php index 7506d39..a2edd08 100644 --- a/template.php +++ b/template.php @@ -317,7 +317,7 @@ class Template */ function _load($name) { - if ($template = $this->registry->modules[ISSO_DB_LAYER]->query("SELECT * FROM " . $this->tablename . " WHERE " . $this->namecolumn . " = '$name'" . ($this->extrawhere ? ' ' . $this->extrawhere : ''))) + if ($template = $this->registry->modules[ISSO_DB_LAYER]->query_first("SELECT * FROM " . $this->tablename . " WHERE " . $this->namecolumn . " = '$name'" . ($this->extrawhere ? ' ' . $this->extrawhere : ''))) { return $template[ $this->datacolumn ]; } -- 2.22.5