changeset 2511:177cbd750610

WIP for #158
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 24 Oct 2016 10:45:11 +0100
parents 8536e978ab6f
children 0217c4781e5e
files php/keygen.php php/requestKey.php
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/php/keygen.php	Mon Oct 24 10:39:20 2016 +0100
+++ b/php/keygen.php	Mon Oct 24 10:45:11 2016 +0100
@@ -30,6 +30,7 @@
     $fileHandle = fopen($filename, 'w');
     if ($fileHandle == FALSE) {
         echo $xml_error;
+        return;
     }
     fclose($fileHandle);
     // TODO:
--- a/php/requestKey.php	Mon Oct 24 10:39:20 2016 +0100
+++ b/php/requestKey.php	Mon Oct 24 10:45:11 2016 +0100
@@ -45,6 +45,7 @@
 $fileHandle = fopen($filename, 'w');
 if ($fileHandle == FALSE) {
     echo "<response><state>ERROR</state><key>".$key."</key></response>";
+    return;
 }
 fclose($fileHandle);
 // TODO: