diff --git a/mobile/functions.php b/mobile/functions.php index 68530cf8f..3d3cdc660 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -4,7 +4,7 @@ /* TODO replace with interface to db-prefs */ function mobile_pref_toggled($link, $id) { - if (get_pref($link, "_MOBILE_$id")) + if (get_pref($link, "_MOBILE_$id")) return "true"; else return ""; @@ -51,10 +51,10 @@ AND ttrss_user_entries.ref_id = ttrss_entries.id AND owner_uid = '$owner_uid') AS unread FROM ttrss_feeds - WHERE + WHERE ttrss_feeds.owner_uid = '$owner_uid' - ORDER BY $order_by $limit_qpart"); - + ORDER BY $order_by $limit_qpart"); + if (!$offset) print '