Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 47dc28e53c17efa0462290bd5d174038f667a5b8 1 parent 7e034f2
martinlanghoff authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 search/documents/resource_document.php
View
4 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 " "
Please sign in to comment.
Something went wrong with that request. Please try again.