summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 3ace20f86..44331d72e 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -715,6 +715,10 @@
$result = db_query($link, "SELECT salt FROM ttrss_users WHERE
login = '$login'");
+ if (db_num_rows($result) != 1) {
+ return false;
+ }
+
$salt = db_fetch_result($result, 0, "salt");
if ($salt == "") {