Change check from Traversable to false in NZB class

This commit is contained in:
DariusIII
2017-02-22 15:41:07 +01:00
parent cdbb3550a4
commit 5752cce27a
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
+2 -2
View File
@@ -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;
}