From 197e80add6532b8470c6805131c88b91d5f714ea Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 4 Dec 2018 10:47:01 +0300 Subject: fix several issues related to profile being set to a non-numeric value --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index dcb2e7518..1ff18c8bb 100755 --- a/include/functions.php +++ b/include/functions.php @@ -584,7 +584,7 @@ $sth = $pdo->query("SELECT pref_name,def_value FROM ttrss_prefs"); - $profile = $profile ? $profile : null; + if (!is_numeric($profile) || !$profile || get_schema_version() < 63) $profile = null; $u_sth = $pdo->prepare("SELECT pref_name FROM ttrss_user_prefs WHERE owner_uid = :uid AND -- cgit v1.2.3-54-g00ecf