aboutsummaryrefslogtreecommitdiff
path: root/app/models/RSSConfiguration.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-28 13:12:52 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2012-10-28 13:12:52 +0100
commitb2e8befe266870adc06b0a66e5cb0196a8f47471 (patch)
tree87880baa0822096fb3f73d147535b7213841b329 /app/models/RSSConfiguration.php
parent33b47d55613d44f10bc78bd35fee2e7b9f29359a (diff)
correction bug dans RSSConfiguration
Diffstat (limited to 'app/models/RSSConfiguration.php')
-rwxr-xr-xapp/models/RSSConfiguration.php4
1 files changed, 2 insertions, 2 deletions
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);