Mercurial > hg > webaudioevaluationtool
comparison php/save.php @ 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 |
comparison
equal
deleted
inserted
replaced
2635:325e1ca3e03b | 2636:8fc8d28d8e8e |
---|---|
49 | 49 |
50 // Add the relavent nodes: | 50 // Add the relavent nodes: |
51 // <datetime> | 51 // <datetime> |
52 $n1 = $docRoot->getElementsByTagName("datetime"); | 52 $n1 = $docRoot->getElementsByTagName("datetime"); |
53 $n2 = $saved_root->getElementsByTagName("datetime"); | 53 $n2 = $saved_root->getElementsByTagName("datetime"); |
54 if ($n1->length > 0 && $n2.length == 0) { | 54 if ($n1->length > 0 && $n2->length == 0) { |
55 $n1 = $doc->importNode($n1->item(0), true); | 55 $n1 = $doc->importNode($n1->item(0), true); |
56 $docRoot->appendChild($n1); | 56 $docRoot->appendChild($n1); |
57 } | 57 } |
58 | 58 |
59 //<navigator> | 59 //<navigator> |
60 $n1 = $docRoot->getElementsByTagName("navigator"); | 60 $n1 = $docRoot->getElementsByTagName("navigator"); |
61 $n2 = $saved_root->getElementsByTagName("navigator"); | 61 $n2 = $saved_root->getElementsByTagName("navigator"); |
62 if ($n1->length > 0 && $n2.length == 0) { | 62 if ($n1->length > 0 && $n2->length == 0) { |
63 $n1 = $doc->importNode($n1->item(0), true); | 63 $n1 = $doc->importNode($n1->item(0), true); |
64 $docRoot->appendChild($n1); | 64 $docRoot->appendChild($n1); |
65 } | 65 } |
66 | 66 |
67 //<survey location="pre"> | 67 //<survey location="pre"> |