From 47dc28e53c17efa0462290bd5d174038f667a5b8 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Tue, 26 Sep 2006 05:09:01 +0000 Subject: [PATCH] search: fixed mysql-isms - tablenames without prefix and with backticks --- search/documents/resource_document.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/documents/resource_document.php b/search/documents/resource_document.php index c65b632236..bf1f6dd44d 100644 --- a/search/documents/resource_document.php +++ b/search/documents/resource_document.php @@ -39,7 +39,7 @@ $documents = array(); $resources = get_recordset_sql('SELECT * - FROM `resource` + FROM {$CFG->prefix}resource WHERE alltext NOT LIKE "" AND alltext NOT LIKE " " AND alltext NOT LIKE " " @@ -61,7 +61,7 @@ //returns a single resource search document based on a resource_entry id function resource_single_document($id) { $resources = get_recordset_sql('SELECT * - FROM `resource` + FROM {$CFG->prefix}resource WHERE alltext NOT LIKE "" AND alltext NOT LIKE " " AND alltext NOT LIKE " " -- 2.39.5