From d246ff5e8eba2966cd8debc77d3aef68575eea4c Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 4 Dec 2014 22:05:26 +0100 Subject: [PATCH] Fixed undefined index when running decrypt_hashes.php --- lib/copy_this/www/lib/TmuxOutput.php | 2 +- lib/decrypt_hashes.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/copy_this/www/lib/TmuxOutput.php b/lib/copy_this/www/lib/TmuxOutput.php index e3ac4c2d0..066fce234 100644 --- a/lib/copy_this/www/lib/TmuxOutput.php +++ b/lib/copy_this/www/lib/TmuxOutput.php @@ -117,7 +117,7 @@ class TmuxOutput extends Tmux $buffer = ''; $state = ($this->runVar['settings']['is_running'] == 1) ? 'Running' : 'Disabled'; //$version = $this->_tvers . 'r' . $this->_vers; - $tversion = '0.5r0071'; + $tversion = '0.5r0072'; $buffer .= sprintf($this->tmpMasks[2], "Monitor $state v$tversion @ $this->_tvers [" . $this->_vers ."]: ", diff --git a/lib/decrypt_hashes.php b/lib/decrypt_hashes.php index 4be544505..718d04047 100644 --- a/lib/decrypt_hashes.php +++ b/lib/decrypt_hashes.php @@ -30,11 +30,11 @@ function getPreName($argv) $res = false; if (isset($argv[1]) && $argv[1] === "all") { - $res = $pdo->queryDirect('SELECT ID AS releaseid, name, searchname, groupID, categoryID, dehashstatus FROM releases WHERE prehashID = 0 AND ishashed = 1'); + $res = $pdo->queryDirect('SELECT ID AS releaseID, name, searchname, groupID, categoryID, dehashstatus FROM releases WHERE prehashID = 0 AND ishashed = 1'); } else if (isset($argv[1]) && $argv[1] === "full") { - $res = $pdo->queryDirect('SELECT id AS releaseid, name, searchname, groupID, categoryID, dehashstatus FROM releases WHERE categoryID = 8020 AND dehashstatus BETWEEN -6 AND 0'); + $res = $pdo->queryDirect('SELECT id AS releaseID, name, searchname, groupID, categoryID, dehashstatus FROM releases WHERE categoryID = 8020 AND dehashstatus BETWEEN -6 AND 0'); } else if (isset($argv[1]) && is_numeric($argv[1])) { - $res = $pdo->queryDirect('SELECT id AS releaseid, name, searchname, groupID, categoryID, dehashstatus FROM releases WHERE categoryID = 8020 AND dehashstatus BETWEEN -6 AND 0 ORDER BY postdate DESC LIMIT ' . $argv[1]); + $res = $pdo->queryDirect('SELECT id AS releaseID, name, searchname, groupID, categoryID, dehashstatus FROM releases WHERE categoryID = 8020 AND dehashstatus BETWEEN -6 AND 0 ORDER BY postdate DESC LIMIT ' . $argv[1]); } $counter = $counted = $total = 0; @@ -55,7 +55,7 @@ function getPreName($argv) } if ($success === 0) { - $pdo->queryDirect(sprintf('UPDATE releases SET dehashstatus = dehashstatus - 1 WHERE ID = %d', $row['releaseid'])); + $pdo->queryDirect(sprintf('UPDATE releases SET dehashstatus = dehashstatus - 1 WHERE ID = %d', $row['releaseID'])); } else { $counted++; }