From b2e8befe266870adc06b0a66e5cb0196a8f47471 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 28 Oct 2012 13:12:52 +0100 Subject: correction bug dans RSSConfiguration --- app/models/RSSConfiguration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models/RSSConfiguration.php') diff --git a/app/models/RSSConfiguration.php b/app/models/RSSConfiguration.php index d0fb8a683..be960987b 100755 --- a/app/models/RSSConfiguration.php +++ b/app/models/RSSConfiguration.php @@ -43,7 +43,7 @@ class RSSConfiguration extends Model { } public function _postsPerPage ($value) { - if (is_int ($value)) { + if (is_int (intval ($value))) { $this->posts_per_page = $value; } else { $this->posts_per_page = 10; @@ -136,7 +136,7 @@ class RSSConfigurationDAO extends Model_array { public function update ($values) { foreach ($values as $key => $value) { - $this->array[0][$key] = $value; + $this->array[$key] = $value; } $this->writeFile($this->array); -- cgit v1.2.3