From fe40f5fb00c1e1460b0625f5a3b0541a3a0068fd Mon Sep 17 00:00:00 2001 From: Darko Date: Wed, 2 Oct 2013 11:23:54 +0200 Subject: [PATCH] Changed query method. --- test/namefixer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/namefixer.php b/test/namefixer.php index 8f4c710..37b85d5 100755 --- a/test/namefixer.php +++ b/test/namefixer.php @@ -242,7 +242,7 @@ public function updateRelease($release, $name, $method, $echo, $type, $namestatu $status = 7; else if ($type == "Filenames, ") $status = 9; - $db->queryDirect(sprintf("UPDATE releases set searchname = %s, relnamestatus = %d, categoryID = %d where ID = %d", $db->escapeString($newname), $status, $determinedcat, $release["releaseID"])); + $db->query(sprintf("UPDATE releases set searchname = %s, relnamestatus = %d, categoryID = %d where ID = %d", $db->escapeString($newname), $status, $determinedcat, $release["releaseID"])); } else $db->query(sprintf("UPDATE releases set searchname = %s, categoryID = %d where ID = %d", $db->escapeString($newname), $determinedcat, $release["releaseID"]));