Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit fe81863c6e34ce262fb6f259a8e29661249dbee4 1 parent 4ba88b0
@philsturgeon philsturgeon authored
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));
Please sign in to comment.
Something went wrong with that request. Please try again.