summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-04 10:47:01 +0300
committerAndrew Dolgov <[email protected]>2018-12-04 10:47:01 +0300
commit197e80add6532b8470c6805131c88b91d5f714ea (patch)
treefb488ca7a90182bc5ccfda393674cca34a624d1b /include
parent7e7a15136bbce68f65f538b781cc47109de7ccc8 (diff)
fix several issues related to profile being set to a non-numeric value
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions.php2
1 files changed, 1 insertions, 1 deletions
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