mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 03:38:52 +00:00
Change check from Traversable to false in NZB class
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user