From 5c8f580358639ec8712e0efc9bdbf6c358c52b5d Mon Sep 17 00:00:00 2001
From: diml <diml>
Date: Mon, 10 Sep 2007 19:48:31 +0000
Subject: [PATCH] Fixes wildcard exception occurence on deleting resources.

---
 search/documents/resource_document.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/search/documents/resource_document.php b/search/documents/resource_document.php
index 3bc782b0f2..98722bf62c 100644
--- a/search/documents/resource_document.php
+++ b/search/documents/resource_document.php
@@ -274,7 +274,7 @@ function resource_delete($info, $itemtype) {
 */
 function resource_db_names() {
     //[primary id], [table name], [time created field name], [time modified field name], [additional where conditions for sql]
-    return array(array('id', 'resource', 'timemodified', 'timemodified', '*', " (alltext != '' AND alltext != ' ' AND alltext != '&nbsp;' AND TYPE != 'file') OR TYPE = 'file' "));
+    return array(array('id', 'resource', 'timemodified', 'timemodified', 'any', " (alltext != '' AND alltext != ' ' AND alltext != '&nbsp;' AND TYPE != 'file') OR TYPE = 'file' "));
 } //resource_db_names
 
 /**
-- 
2.39.5