mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Couple of sql statements that had incorrect prefix handling or no
prefix handling.
This commit is contained in:
@@ -61,8 +61,7 @@ class comment_installer {
|
||||
$sql = "SELECT `item_id` FROM {comments}";
|
||||
module::event("item_related_update_batch", $sql);
|
||||
|
||||
$db->query("DROP TABLE IF EXISTS {comments]
|
||||
`;");
|
||||
$db->query("DROP TABLE IF EXISTS {comments}`;");
|
||||
module::delete("comment");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,6 @@ class search_event_Core {
|
||||
|
||||
static function item_related_update_batch($sql) {
|
||||
$db = Database::instance();
|
||||
$db->query("UPDATE `search_records` SET `dirty` = 1 WHERE item_id IN ($sql)");
|
||||
$db->query("UPDATE `{search_records}` SET `dirty` = 1 WHERE item_id IN ($sql)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user