summaryrefslogtreecommitdiffstats
path: root/web/html/index.php
diff options
context:
space:
mode:
authoreric <eric>2004-06-28 21:37:02 +0200
committereric <eric>2004-06-28 21:37:02 +0200
commit4b80bc34ffb738ef3cd1a7944e8716d3e8140565 (patch)
treed371144998ca570b0808be07ff10c3a697a37bac /web/html/index.php
parentefcca46f26247ee69b33cb1effb0d34077817a80 (diff)
downloadaur-4b80bc34ffb738ef3cd1a7944e8716d3e8140565.tar.gz
aur-4b80bc34ffb738ef3cd1a7944e8716d3e8140565.tar.xz
re-working pkgsearch, NumVotes add to Packages table
Diffstat (limited to 'web/html/index.php')
-rw-r--r--web/html/index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/html/index.php b/web/html/index.php
index 67ff657d..64a1c2f7 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.");
}
}