changeset 2637:68299f11d445

Loser checks on findNodeByAttribute
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 19 Jan 2017 13:07:43 +0000
parents 8fc8d28d8e8e
children 82b6b75a91bc
files php/save.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/php/save.php	Thu Jan 19 13:04:25 2017 +0000
+++ b/php/save.php	Thu Jan 19 13:07:43 2017 +0000
@@ -1,7 +1,7 @@
 <?php
 
 function findNodeByAttribute($nodeList, $attributeName, $attributeValue) {
-    if (empty($attributeName) || empty($attributeValue) || empty($nodelist)) {
+    if (empty($attributeName) || empty($attributeValue)) {
         die("Error: Empty findNodeByAttribute");
     }