From ab74dea004673bf258aba1486a420b563fe40ee4 Mon Sep 17 00:00:00 2001
From: Robert Anderson <randerson@lbsd.net>
Date: Mon, 20 Apr 2009 12:57:45 +0000
Subject: [PATCH] Fixed syntax errors

---
 webui/group-add.php              | 2 +-
 webui/group-attribute-change.php | 2 +-
 webui/group-attribute-delete.php | 2 +-
 webui/user-attribute-delete.php  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/webui/group-add.php b/webui/group-add.php
index e55ccf07..76ccb967 100644
--- a/webui/group-add.php
+++ b/webui/group-add.php
@@ -74,7 +74,7 @@ if (isset($_POST['frmaction']) && $_POST['frmaction'] == "add") {
 <?php
 
 # Check we have all params
-} elseif (isset($_POST['frmaction'] && $_POST['frmaction'] == "add2") {
+} elseif (isset($_POST['frmaction']) && $_POST['frmaction'] == "add2") {
 
 ?>
 
diff --git a/webui/group-attribute-change.php b/webui/group-attribute-change.php
index 6c50ffa2..6008271e 100644
--- a/webui/group-attribute-change.php
+++ b/webui/group-attribute-change.php
@@ -36,7 +36,7 @@ printHeader(array(
 ));
 
 # Display change screen
-if (isset($_POST['frmaction'] && $_POST['frmaction'] == "change") {
+if (isset($_POST['frmaction']) && $_POST['frmaction'] == "change") {
 	# Check an attribute was selected
 	if (isset($_POST['attr_id'])) {
 		# Prepare statement
diff --git a/webui/group-attribute-delete.php b/webui/group-attribute-delete.php
index 0cc3650b..01810e29 100644
--- a/webui/group-attribute-delete.php
+++ b/webui/group-attribute-delete.php
@@ -36,7 +36,7 @@ printHeader(array(
 
 
 # Display delete confirm screen
-if (isset($_POST['frmaction'] && $_POST['frmaction'] == "delete") {
+if (isset($_POST['frmaction']) && $_POST['frmaction'] == "delete") {
 	# Check a user was selected
 	if (isset($_POST['attr_id'])) {
 
diff --git a/webui/user-attribute-delete.php b/webui/user-attribute-delete.php
index 6e31f45c..de48aa9b 100644
--- a/webui/user-attribute-delete.php
+++ b/webui/user-attribute-delete.php
@@ -69,7 +69,7 @@ if (isset($_POST['frmaction']) && $_POST['frmaction'] == "delete") {
 
 	}
 # SQL Updates
-} elseif (isset($_POST['frmaction'] && $_POST['frmaction'] == "delete2") {
+} elseif (isset($_POST['frmaction']) && $_POST['frmaction'] == "delete2") {
 
 ?>
 
-- 
GitLab