From 562c09d8ba9f6d868214bcfd26172c7cb538d195 Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Thu, 19 Mar 2009 14:35:22 +0000
Subject: [PATCH] Fixed indentation / spelling

---
 webui/attribute-add.php | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/webui/attribute-add.php b/webui/attribute-add.php
index da64fbb5..c7b51424 100644
--- a/webui/attribute-add.php
+++ b/webui/attribute-add.php
@@ -83,7 +83,6 @@ if ($_POST['frmaction'] == "add") {
 			</tr>
 		</table>
 	</form>
-
 <?php
 
 # Check we have all params
@@ -92,17 +91,15 @@ if ($_POST['frmaction'] == "add") {
 	<p class="pageheader">Attribute Add Results</p>
 
 <?php
-	# Check name
+	# Check for empty values
 	if (empty($_POST['attr_name']) || empty($_POST['attr_operator']) || empty($_POST['attr_value'])) {
 ?>
 		<div class="warning">Submission cannot have empty value</div>
 <?php
-
 	} else {
 		$stmt = $db->prepare("INSERT INTO ${DB_TABLE_PREFIX}user_attributes (UserID,Name,Operator,Value) VALUES (?,?,?,?)");
-
+		# Which user am I working with?
 		$attr_user_id = $_SESSION['attr_user_id']; 
-		
 
 		$res = $stmt->execute(array(
 			$attr_user_id,
-- 
GitLab