diff --git a/classes/feeds.php b/classes/feeds.php
index 502efd40..be788647 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -764,7 +764,7 @@ class Feeds extends Protected_Handler {
@$offset = db_escape_string($_REQUEST["skip"]);
@$vgroup_last_feed = db_escape_string($_REQUEST["vgrlf"]);
$order_by = db_escape_string($_REQUEST["order_by"]);
- $include_children = $_REQUEST["include_children"] == "on";
+ $include_children = $_REQUEST["include_children"] == "true";
if (is_numeric($feed)) $feed = (int) $feed;
@@ -806,6 +806,8 @@ class Feeds extends Protected_Handler {
set_pref($this->link, "_DEFAULT_VIEW_LIMIT", $limit);
set_pref($this->link, "_DEFAULT_VIEW_ORDER_BY", $order_by);
+ $_SESSION["_DEFAULT_INCLUDE_CHILDREN"] = $include_children;
+
if (!$cat_view && preg_match("/^[0-9][0-9]*$/", $feed)) {
db_query($this->link, "UPDATE ttrss_feeds SET last_viewed = NOW()
WHERE id = '$feed' AND owner_uid = ".$_SESSION["uid"]);
diff --git a/include/functions.php b/include/functions.php
index 3cb503fd..cb24cb87 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2137,6 +2137,7 @@
$params["icons_url"] = ICONS_URL;
$params["cookie_lifetime"] = SESSION_COOKIE_LIFETIME;
+ $params["default_include_children"] = $_SESSION["_DEFAULT_INCLUDE_CHILDREN"];
$params["default_view_mode"] = get_pref($link, "_DEFAULT_VIEW_MODE");
$params["default_view_limit"] = (int) get_pref($link, "_DEFAULT_VIEW_LIMIT");
$params["default_view_order_by"] = get_pref($link, "_DEFAULT_VIEW_ORDER_BY");
diff --git a/index.php b/index.php
index 96d13558..3a68c90f 100644
--- a/index.php
+++ b/index.php
@@ -185,11 +185,16 @@
-
+ -->
+
+