changeset 2636:8fc8d28d8e8e

Typos in PHP
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 19 Jan 2017 13:04:25 +0000
parents 325e1ca3e03b
children 68299f11d445
files php/save.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/php/save.php	Thu Jan 19 13:03:08 2017 +0000
+++ b/php/save.php	Thu Jan 19 13:04:25 2017 +0000
@@ -51,7 +51,7 @@
 // <datetime>
 $n1 = $docRoot->getElementsByTagName("datetime");
 $n2 = $saved_root->getElementsByTagName("datetime");
-if ($n1->length > 0 && $n2.length == 0) {
+if ($n1->length > 0 && $n2->length == 0) {
     $n1 = $doc->importNode($n1->item(0), true);
     $docRoot->appendChild($n1);
 }
@@ -59,7 +59,7 @@
 //<navigator>
 $n1 = $docRoot->getElementsByTagName("navigator");
 $n2 = $saved_root->getElementsByTagName("navigator");
-if ($n1->length > 0 && $n2.length == 0) {
+if ($n1->length > 0 && $n2->length == 0) {
     $n1 = $doc->importNode($n1->item(0), true);
     $docRoot->appendChild($n1);
 }