From 0b0044128baa7392dabdaae7895ecfecf9b4d28b Mon Sep 17 00:00:00 2001 From: Darko Date: Thu, 18 Jun 2015 09:51:14 +0200 Subject: [PATCH] Update CollectionsCleaning.php --- newznab/controllers/CollectionsCleaning.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/newznab/controllers/CollectionsCleaning.php b/newznab/controllers/CollectionsCleaning.php index 944694118..2ed7ecd46 100644 --- a/newznab/controllers/CollectionsCleaning.php +++ b/newznab/controllers/CollectionsCleaning.php @@ -1,5 +1,7 @@ e0 = self::REGEX_FILE_EXTENSIONS; @@ -79,7 +81,7 @@ class CollectionsCleaning ]; $options += $defaults; - $this->pdo = ($options['Settings'] instanceof newznab\db\Settings ? $options['Settings'] : new newznab\db\Settings()); + $this->pdo = ($options['Settings'] instanceof Settings ? $options['Settings'] : new Settings()); $this->_regexes = new Regexes(['Settings' => $this->pdo, 'Table_Name' => 'collection_regexes']); } @@ -107,6 +109,7 @@ class CollectionsCleaning case 'alt.binaries.this.is.an.example': return $this->_example_method_name(); */ + case null: default: return $this->generic(); }