From 65d4c8103477a754bb566b9758a3991bf7146e2c Mon Sep 17 00:00:00 2001 From: Darko Date: Wed, 29 Apr 2015 08:51:23 +0200 Subject: [PATCH] Fix wrong type check for file size. --- lib/copy_this/newznab/processing/post/ProcessAdditional.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/copy_this/newznab/processing/post/ProcessAdditional.php b/lib/copy_this/newznab/processing/post/ProcessAdditional.php index a40fd771e..d97939310 100644 --- a/lib/copy_this/newznab/processing/post/ProcessAdditional.php +++ b/lib/copy_this/newznab/processing/post/ProcessAdditional.php @@ -349,12 +349,12 @@ class ProcessAdditional // Maximum size of releases in GB. $this->_maxSize = (string)($this->site->maxsizetopostprocess != '') ? $this->site->maxsizetopostprocess : 100; - $this->_maxSize = ($this->_maxSize === 0 ? '' : 'AND r.size < ' . ($this->_maxSize * 1073741824)); + $this->_maxSize = ($this->_maxSize == 0 ? '' : 'AND r.size < ' . ($this->_maxSize * 1073741824)); // Minimum size of releases in MB. $this->_minSize = (string)($this->site->minsizetopostprocess != '') ? $this->site->minsizetopostprocess : 1; - $this->_minSize = ($this->_minSize === 0 ? '' : 'AND r.size > ' . ($this->_minSize * 1048576)); + $this->_minSize = ($this->_minSize == 0 ? '' : 'AND r.size > ' . ($this->_minSize * 1048576)); // Use the alternate NNTP provider for downloading Message-ID's ? $this->_alternateNNTP = ($this->site->alternate_nntp == 1 ? true : false);