From 3e64e16bc649c78799e51d2cb8a797d2e7d5f5a7 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Sun, 8 Dec 2013 18:10:34 +0100 Subject: [PATCH] More fixes --- bin/monitor.php | 2 +- test/namefixer.php | 2 +- test/prehash.php | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/monitor.php b/bin/monitor.php index b251a6e84..1a7c15a52 100644 --- a/bin/monitor.php +++ b/bin/monitor.php @@ -4,7 +4,7 @@ require(dirname(__FILE__)."/config.php"); require(WWW_DIR.'/lib/postprocess.php'); require_once (WWW_DIR.'/lib/site.php'); -$version="0.3r305"; +$version="0.3r306"; $db = new DB(); $s = new Sites(); diff --git a/test/namefixer.php b/test/namefixer.php index 43487f409..19984a2d0 100644 --- a/test/namefixer.php +++ b/test/namefixer.php @@ -129,7 +129,7 @@ class Namefixer $rowcount = $relres->rowCount(); if ($rowcount > 0) { - while ($relrow = $functions->fetchArray($relres)) + foreach ($relres as $relrow) { $this->done = $this->matched = false; $this->checkName($relrow, $echo, $type, $namestatus); diff --git a/test/prehash.php b/test/prehash.php index a767cc14f..573d989eb 100755 --- a/test/prehash.php +++ b/test/prehash.php @@ -118,8 +118,7 @@ Class Predb else $nfo = $db->escapeString("http://nzb.isasecret.com/".$matches2["nfo"]); - $qry = $db->prepare(sprintf("INSERT INTO prehash (title, nfo, size, category, predate, adddate, source, hash) VALUES (%s, %s, %s, %s, FROM_UNIXTIME(".strtotime($matches2["date"])."), now(), %s, %s)", $db->escapeString($matches2["title"]), $nfo, $size, $db->escapeString($matches2["category"]), $db->escapeString("womble"), $db->escapeString(md5($matches2["title"])))); - $qry->execute(); + $db->exec(sprintf("INSERT INTO prehash (title, nfo, size, category, predate, adddate, source, hash) VALUES (%s, %s, %s, %s, FROM_UNIXTIME(".strtotime($matches2["date"])."), now(), %s, %s)", $db->escapeString($matches2["title"]), $nfo, $size, $db->escapeString($matches2["category"]), $db->escapeString("womble"), $db->escapeString(md5($matches2["title"])))); $newnames++; } }