diff options
Diffstat (limited to 'include/functions.php')
-rwxr-xr-x | include/functions.php | 2 |
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 |