From 6723babdd65d946cdc7e315d7f11fb3ca0e455d3 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 25 Oct 2012 00:12:18 +0200 Subject: ajouts graphique + ajout suppression vieux articles --- app/models/Feed.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/models/Feed.php') 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); -- cgit v1.2.3