summaryrefslogtreecommitdiffstats
path: root/pages/cp.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/cp.php
parent9f7a77eb549d1cfe93b406a0c29862db8664de76 (diff)
downloadpathery-79d928cd42c32122edd47d1a450fb0c4ced3de2f.tar.xz
fix lots of warnings, whitespace
Diffstat (limited to 'pages/cp.php')
-rw-r--r--pages/cp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/cp.php b/pages/cp.php
index 2abc6b4..c6bcf93 100644
--- a/pages/cp.php
+++ b/pages/cp.php
@@ -26,7 +26,7 @@ if (isset($_POST['displayName'])) {
$inputname = chatFilter($inputname);
$userID = $_SESSION['userID'];
- if ($_SESSION['accepted'] == 1) {
+ if ($accepted) {
if (validatename($inputname)) {
$sql = "UPDATE `users`
SET `displayName` = '$inputname'
@@ -79,4 +79,4 @@ function chatFilter($chat) {
htmlFooter();
-?> \ No newline at end of file
+?>