# HG changeset patch # User Nicholas Jillings # Date 1477302311 -3600 # Node ID 177cbd750610a1f21b70a90e04f4f01887236221 # Parent 8536e978ab6f695a93e017bfa9fa8c1daedf860f WIP for #158 diff -r 8536e978ab6f -r 177cbd750610 php/keygen.php --- 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: diff -r 8536e978ab6f -r 177cbd750610 php/requestKey.php --- 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 "ERROR".$key.""; + return; } fclose($fileHandle); // TODO: