From ce36a3fbd2f4d10972dd4d15a05ed7a596c06485 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 29 Oct 2012 18:42:26 +0100 Subject: Fix bug #1 --- app/controllers/feedController.php | 2 +- app/models/Feed.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index 1450ce69e..eed8ccafa 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -14,7 +14,7 @@ class feedController extends ActionController { try { $feed = new Feed ($url); $feed->load (); - + $feedDAO = new FeedDAO (); $values = array ( 'id' => $feed->id (), diff --git a/app/models/Feed.php b/app/models/Feed.php index e28657612..8bc717a48 100644 --- a/app/models/Feed.php +++ b/app/models/Feed.php @@ -53,12 +53,21 @@ class Feed extends Model { $this->category = $value; } public function _name ($value) { + if (is_null ($value)) { + $value = ''; + } $this->name = $value; } public function _website ($value) { + if (is_null ($value)) { + $value = ''; + } $this->website = $value; } public function _description ($value) { + if (is_null ($value)) { + $value = ''; + } $this->description = $value; } -- cgit v1.2.3