From cef176c754d9c36c1b2cb6fb993ec432f3700126 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 17 Dec 2013 09:48:07 +0100 Subject: [PATCH] [FIX] Wrong parameter count --- public/include/classes/share.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/share.class.php b/public/include/classes/share.class.php index 26b8f161..0b6beb89 100644 --- a/public/include/classes/share.class.php +++ b/public/include/classes/share.class.php @@ -192,7 +192,7 @@ class Share Extends Base { // Sleep first to allow any IO to cleanup sleep($this->config['purge']['sleep']); $stmt = $this->mysqli->prepare("DELETE FROM $this->tableArchive WHERE block_id < ? AND time < DATE_SUB(now(), INTERVAL ? MINUTE) AND id <= ? LIMIT " . $this->config['purge']['shares']); - if ($this->checkStmt($stmt) && $stmt->bind_param('ii', $aBlock['id'], $this->config['archive']['maxage'], $max_id) && $stmt->execute()) { + if ($this->checkStmt($stmt) && $stmt->bind_param('iii', $aBlock['id'], $this->config['archive']['maxage'], $max_id) && $stmt->execute()) { $affected = $stmt->affected_rows; } else { return $this->sqlError();