summaryrefslogtreecommitdiffstats
path: root/pages/login.php
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2012-07-18 01:45:55 -0700
committerraylu <raylu@mixpanel.com>2012-07-18 01:45:55 -0700
commit79d928cd42c32122edd47d1a450fb0c4ced3de2f (patch)
tree9989a6fc699476a01b7721a13a330f9e214fe0de /pages/login.php
parent9f7a77eb549d1cfe93b406a0c29862db8664de76 (diff)
downloadpathery-79d928cd42c32122edd47d1a450fb0c4ced3de2f.tar.xz
fix lots of warnings, whitespace
Diffstat (limited to 'pages/login.php')
-rw-r--r--pages/login.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/login.php b/pages/login.php
index 49847c4..5042cd8 100644
--- a/pages/login.php
+++ b/pages/login.php
@@ -1,5 +1,5 @@
<?php
-if ($_SESSION['accepted'] == 1) {
+if ($accepted) {
header("Location: $mydomain");
exit;
}
@@ -110,10 +110,10 @@ try {
'".sql_clean($display)."',
'".sql_clean($email)."',
NOW(), NOW())";
- $result = mysql_query($sql);
+ $result = mysql_query($sql) or die(mysql_error());
//Allright, all set.
//echo "$sql <br /> <br />";
- If ($result) {
+ if ($result) {
$userID = mysql_insert_id();
} //Oh crap?
else {