Skip to content
Snippets Groups Projects
Commit 562c09d8 authored by Robert Anderson's avatar Robert Anderson
Browse files

Fixed indentation / spelling

parent 8b2f771a
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,6 @@ if ($_POST['frmaction'] == "add") { ...@@ -83,7 +83,6 @@ if ($_POST['frmaction'] == "add") {
</tr> </tr>
</table> </table>
</form> </form>
<?php <?php
# Check we have all params # Check we have all params
...@@ -92,17 +91,15 @@ if ($_POST['frmaction'] == "add") { ...@@ -92,17 +91,15 @@ if ($_POST['frmaction'] == "add") {
<p class="pageheader">Attribute Add Results</p> <p class="pageheader">Attribute Add Results</p>
<?php <?php
# Check name # Check for empty values
if (empty($_POST['attr_name']) || empty($_POST['attr_operator']) || empty($_POST['attr_value'])) { if (empty($_POST['attr_name']) || empty($_POST['attr_operator']) || empty($_POST['attr_value'])) {
?> ?>
<div class="warning">Submission cannot have empty value</div> <div class="warning">Submission cannot have empty value</div>
<?php <?php
} else { } else {
$stmt = $db->prepare("INSERT INTO ${DB_TABLE_PREFIX}user_attributes (UserID,Name,Operator,Value) VALUES (?,?,?,?)"); $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']; $attr_user_id = $_SESSION['attr_user_id'];
$res = $stmt->execute(array( $res = $stmt->execute(array(
$attr_user_id, $attr_user_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment