diff --git a/backend.php b/backend.php index e13019d4..52147205 100644 --- a/backend.php +++ b/backend.php @@ -282,10 +282,10 @@ $subop = db_escape_string($_REQUEST["subop"]); $view_mode = db_escape_string($_REQUEST["view_mode"]); $limit = (int) get_pref($link, "DEFAULT_ARTICLE_LIMIT"); - $cat_view = db_escape_string($_REQUEST["cat"]); - $next_unread_feed = db_escape_string($_REQUEST["nuf"]); - $offset = db_escape_string($_REQUEST["skip"]); - $vgroup_last_feed = db_escape_string($_REQUEST["vgrlf"]); + @$cat_view = db_escape_string($_REQUEST["cat"]); + @$next_unread_feed = db_escape_string($_REQUEST["nuf"]); + @$offset = db_escape_string($_REQUEST["skip"]); + @$vgroup_last_feed = db_escape_string($_REQUEST["vgrlf"]); $csync = $_REQUEST["csync"]; $order_by = db_escape_string($_REQUEST["order_by"]); diff --git a/db-prefs.php b/db-prefs.php index 228fa7ff..af187df1 100644 --- a/db-prefs.php +++ b/db-prefs.php @@ -11,10 +11,11 @@ $pref_name = db_escape_string($pref_name); $prefs_cache = true; + $profile = false; if (!$user_id) { $user_id = $_SESSION["uid"]; - $profile = $_SESSION["profile"]; + @$profile = $_SESSION["profile"]; } else { $user_id = sprintf("%d", $user_id); $prefs_cache = false; @@ -29,7 +30,7 @@ if (get_schema_version($link) < 63) $profile_qpart = ""; if ($prefs_cache && !defined('DISABLE_SESSIONS') && !SINGLE_USER_MODE) { - if ($_SESSION["prefs_cache"] && $_SESSION["prefs_cache"][$pref_name]) { + if ($_SESSION["prefs_cache"] && @$_SESSION["prefs_cache"][$pref_name]) { $tuple = $_SESSION["prefs_cache"][$pref_name]; return convert_pref_type($tuple["value"], $tuple["type"]); } @@ -84,7 +85,7 @@ if (!$user_id) { $user_id = $_SESSION["uid"]; - $profile = $_SESSION["profile"]; + @$profile = $_SESSION["profile"]; } else { $user_id = sprintf("%d", $user_id); $prefs_cache = false; diff --git a/functions.php b/functions.php index 256a6402..11c53915 100644 --- a/functions.php +++ b/functions.php @@ -2066,6 +2066,7 @@ } function get_user_theme_path($link) { + $theme_path = ''; if (get_schema_version($link) >= 63 && $_SESSION["uid"]) { $theme_name = get_pref($link, "_THEME_ID"); @@ -2677,6 +2678,7 @@ $feeds_qpart = "ttrss_user_entries.feed_id = ttrss_feeds.id AND"; } else { $from_qpart = "ttrss_user_entries,ttrss_entries"; + $feeds_qpart = ''; } $query = "SELECT count(int_id) AS unread @@ -3302,6 +3304,8 @@ if (!$owner_uid) $owner_uid = $_SESSION["uid"]; + $ext_tables_part = ""; + if ($search) { $search_query_part = getSearchSql($search, $match_on); @@ -3547,7 +3551,6 @@ FROM $from_qpart WHERE - $group_limit_part $feed_check_qpart ttrss_user_entries.ref_id = ttrss_entries.id AND ttrss_user_entries.owner_uid = '$owner_uid' AND @@ -4148,9 +4151,7 @@ print "