From: diml Date: Mon, 10 Sep 2007 19:48:31 +0000 (+0000) Subject: Fixes wildcard exception occurence on deleting resources. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5c8f580358639ec8712e0efc9bdbf6c358c52b5d;p=moodle.git Fixes wildcard exception occurence on deleting resources. --- 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 != ' ' AND TYPE != 'file') OR TYPE = 'file' ")); + return array(array('id', 'resource', 'timemodified', 'timemodified', 'any', " (alltext != '' AND alltext != ' ' AND alltext != ' ' AND TYPE != 'file') OR TYPE = 'file' ")); } //resource_db_names /**