aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-29 18:42:26 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-29 18:42:26 +0100
commitce36a3fbd2f4d10972dd4d15a05ed7a596c06485 (patch)
tree18e97ceec36dd543df2afd3da6cac3a4f417ef0d
parent9d801981de02d270410e589e0bb906abed95fc6f (diff)
Fix bug #1
-rwxr-xr-xapp/controllers/feedController.php2
-rw-r--r--app/models/Feed.php9
-rw-r--r--public/data/Configuration.array.php2
3 files changed, 11 insertions, 2 deletions
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;
}
diff --git a/public/data/Configuration.array.php b/public/data/Configuration.array.php
index 0d41392f1..57e1710c5 100644
--- a/public/data/Configuration.array.php
+++ b/public/data/Configuration.array.php
@@ -8,7 +8,7 @@ return array (
'shortcuts' => array (
'mark_read' => 'r',
'mark_favorite' => 'f',
- 'go_website' => 'enter',
+ 'go_website' => 'space',
'next_entry' => 'page_down',
'prev_entry' => 'page_up',
'next_page' => 'right',