diff options
author | eric <eric> | 2004-06-28 19:37:02 +0000 |
---|---|---|
committer | eric <eric> | 2004-06-28 19:37:02 +0000 |
commit | 4b80bc34ffb738ef3cd1a7944e8716d3e8140565 (patch) | |
tree | d371144998ca570b0808be07ff10c3a697a37bac /web/html/index.php | |
parent | efcca46f26247ee69b33cb1effb0d34077817a80 (diff) | |
download | aurweb-4b80bc34ffb738ef3cd1a7944e8716d3e8140565.tar.xz |
re-working pkgsearch, NumVotes add to Packages table
Diffstat (limited to 'web/html/index.php')
-rw-r--r-- | web/html/index.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/web/html/index.php b/web/html/index.php index 67ff657..64a1c2f 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -25,11 +25,14 @@ if (isset($_REQUEST["user"]) || isset($_REQUEST["pass"])) { $q.= "AND Passwd = '" . mysql_escape_string($_REQUEST["pass"]) . "'"; $result = db_query($q, $dbh); if (!$result) { - $login_error = __("Incorrect password for username, %s.", + $login_error = __("Error looking up username, %s.", array($_REQUEST["user"])); } else { $row = mysql_fetch_row($result); - if ($row[1]) { + if (empty($row)) { + $login_error = __("Incorrect password for username, %s.", + array($_REQUEST["user"])); + } elseif ($row[1]) { $login_error = __("Your account has been suspended."); } } |