summaryrefslogtreecommitdiff
path: root/app/models/Category.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-04 20:48:38 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-04 23:34:07 +0100
commit5e1109312044b41932e14eb2e8e9ad9497d2ac61 (patch)
treeee2bf0d13cc40ceb28bab7423c9f896574f60645 /app/models/Category.php
parent4a999fb6286bafcd070a1ebe53ceb5effacc8b59 (diff)
Détails : blancs
Suppression des blancs en fin de ligne
Diffstat (limited to 'app/models/Category.php')
-rwxr-xr-xapp/models/Category.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/Category.php b/app/models/Category.php
index ebe55a837..7659e68f6 100755
--- a/app/models/Category.php
+++ b/app/models/Category.php
@@ -37,7 +37,7 @@ class Category extends Model {
}
public function nbFeed () {
if ($this->nbFeed < 0) {
- $catDAO = new CategoryDAO ();
+ $catDAO = new CategoryDAO ();
$this->nbFeed = $catDAO->countFeed ($this->id ());
}
@@ -45,7 +45,7 @@ class Category extends Model {
}
public function nbNotRead () {
if ($this->nbNotRead < 0) {
- $catDAO = new CategoryDAO ();
+ $catDAO = new CategoryDAO ();
$this->nbNotRead = $catDAO->countNotRead ($this->id ());
}
@@ -181,7 +181,7 @@ class CategoryDAO extends Model_pdo {
. 'COUNT(CASE WHEN e.is_read = 0 THEN 1 END) AS nbNotRead, '
. 'COUNT(e.id) AS nbEntries, '
. 'f.* '
- . 'FROM ' . $this->prefix . 'category c '
+ . 'FROM ' . $this->prefix . 'category c '
. 'LEFT OUTER JOIN ' . $this->prefix . 'feed f ON f.category = c.id '
. 'LEFT OUTER JOIN ' . $this->prefix . 'entry e ON e.id_feed = f.id '
. 'GROUP BY f.id '
@@ -290,7 +290,7 @@ class HelperCategory {
$cat->_id ($previousLine['c_id']);
$list[] = $cat;
- $feedsDao = array(); //Prepare for next category
+ $feedsDao = array(); //Prepare for next category
}
$previousLine = $line;