diff options
| author | 2014-02-28 20:22:50 +0100 | |
|---|---|---|
| committer | 2014-02-28 20:22:50 +0100 | |
| commit | f44683b5671b323ba96f0c4cd47ba9458e934679 (patch) | |
| tree | 7dc93c1deecfc7f89212c5ba98d00ccbf98d6777 /app/Models/CategoryDAO.php | |
| parent | d79da54c984fb4bb94bf4226d4318bfd408628db (diff) | |
API streamContents for categories and feeds
https://github.com/marienfressinaud/FreshRSS/issues/13
Diffstat (limited to 'app/Models/CategoryDAO.php')
| -rw-r--r-- | app/Models/CategoryDAO.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.php index 5355228a5..f3c02e3e4 100644 --- a/app/Models/CategoryDAO.php +++ b/app/Models/CategoryDAO.php @@ -64,7 +64,7 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo { if (isset ($cat[0])) { return $cat[0]; } else { - return false; + return null; } } public function searchByName ($name) { @@ -80,7 +80,7 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo { if (isset ($cat[0])) { return $cat[0]; } else { - return false; + return null; } } @@ -120,7 +120,7 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo { public function checkDefault () { $def_cat = $this->searchById (1); - if ($def_cat === false) { + if ($def_cat == null) { $cat = new FreshRSS_Category (Minz_Translate::t ('default_category')); $cat->_id (1); |
