Permalink
Browse files

search: fixed mysql-isms - tablenames without prefix and with backticks

  • Loading branch information...
1 parent 7e034f2 commit 47dc28e53c17efa0462290bd5d174038f667a5b8 martinlanghoff committed Sep 26, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 search/documents/resource_document.php
@@ -39,7 +39,7 @@ function resource_get_content_for_index(&$notneeded) {
$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 @@ function resource_get_content_for_index(&$notneeded) {
//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 " "

0 comments on commit 47dc28e

Please sign in to comment.