Browse files

Adding pages with RSS disabled would create an error. Fixed!

  • Loading branch information...
1 parent 4ba88b0 commit fe81863c6e34ce262fb6f259a8e29661249dbee4 @philsturgeon philsturgeon committed Mar 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 application/modules/core/pages/models/pages_m.php
View
4 application/modules/core/pages/models/pages_m.php
@@ -177,7 +177,7 @@ function create($input = array())
'meta_title' => $input['meta_title'],
'meta_keywords' => $input['meta_keywords'],
'meta_description' => $input['meta_description'],
- 'rss_enabled' => $input['rss_enabled'],
+ 'rss_enabled' => (int) !empty($input['rss_enabled']),
'status' => $input['status'],
'updated_on' => now()
));
@@ -206,7 +206,7 @@ function update($id = 0, $input = array())
'meta_title' => $input['meta_title'],
'meta_keywords' => $input['meta_keywords'],
'meta_description' => $input['meta_description'],
- 'rss_enabled' => $input['rss_enabled'],
+ 'rss_enabled' => (int) !empty($input['rss_enabled']),
'status' => $input['status'],
'updated_on' => now()
), array('id' => $id));

0 comments on commit fe81863

Please sign in to comment.