diff --git a/Changelog b/Changelog index 74bea7ba6..476ca94d5 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2017-02-22 DariusIII + * Chg: Change check from Traversable to false in NZB class * Chg: Update NNBase.php to use defined constants * Chg: Fix sending to sab and download basket from xxx and movie views in Charisma/Omicron themes 2017-02-21 DariusIII diff --git a/nntmux/NZB.php b/nntmux/NZB.php index beebe9f0a..78400d3dc 100755 --- a/nntmux/NZB.php +++ b/nntmux/NZB.php @@ -241,7 +241,7 @@ class NZB foreach ($collections as $collection) { $binaries = $this->pdo->queryDirect(sprintf($this->_binariesQuery, $collection['id'])); - if (!$binaries instanceof \Traversable) { + if ($binaries === false) { return false; } @@ -249,7 +249,7 @@ class NZB foreach ($binaries as $binary) { $parts = $this->pdo->queryDirect(sprintf($this->_partsQuery, $binary['id'])); - if (!$parts instanceof \Traversable) { + if ($parts === false) { return false; }