diff options
| author | 2012-10-25 00:12:18 +0200 | |
|---|---|---|
| committer | 2012-10-25 00:12:18 +0200 | |
| commit | 6723babdd65d946cdc7e315d7f11fb3ca0e455d3 (patch) | |
| tree | e45359332c04fc5c935fbedecd1ade50b6430463 /app/models/Feed.php | |
| parent | 4924f4c6d6d03d39471de363b8d368c8edad8f3d (diff) | |
ajouts graphique + ajout suppression vieux articles
Diffstat (limited to 'app/models/Feed.php')
| -rw-r--r-- | app/models/Feed.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php index 8a3f826bd..cf1b3e06a 100644 --- a/app/models/Feed.php +++ b/app/models/Feed.php @@ -161,7 +161,7 @@ class FeedDAO extends Model_pdo { public function listFeeds () { $sql = 'SELECT * FROM feed'; - $stm = $this->bd->prepare ($sql); + $stm = $this->bd->prepare ($sql); $stm->execute (); return HelperFeed::daoToFeed ($stm->fetchAll (PDO::FETCH_ASSOC)); @@ -179,8 +179,8 @@ class FeedDAO extends Model_pdo { } public function count () { - $sql = 'SELECT COUNT (*) AS count FROM feed'; - $stm = $this->bd->prepare ($sql); + $sql = 'SELECT COUNT(*) AS count FROM feed'; + $stm = $this->bd->prepare ($sql); $stm->execute (); $res = $stm->fetchAll (PDO::FETCH_ASSOC); |
