Added HTTP 500 error code if ext-network is not installed
authorRoland Häder <roland@mxchange.org>
Tue, 2 Oct 2012 21:04:22 +0000 (21:04 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 2 Oct 2012 21:04:22 +0000 (21:04 +0000)
inc/libs/network_functions.php
network-vcheck.php

index bc7c2c400457b84a7b205fa652084db1e4ae4cc8..c6c5981b83c5180218d55876960c803a0bb6caa0 100644 (file)
@@ -975,7 +975,7 @@ function isNetworkTypeHandlerConfigured ($networkId, $networkTypeId) {
 
 // Handles the network-payment-check request
 function handleNetworkPaymentCheckRequest () {
-       // @TODO Implement this function
+       // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine
        reportBug(__FUNCTION__, __LINE__, 'Not yet implemented.');
 }
 
index 953e84b086cb2df268cf1c7dff852b6765665d07..3bb6ff5734343251b2d2361cff391e97a7204aed 100644 (file)
@@ -48,6 +48,9 @@ $GLOBALS['__output_mode'] = -1;
 // Load the required file(s)
 require('inc/config-global.php');
 
+// Set HTTP status to 500 (if ext-network is not found, but this script is called)
+setHttpStatus('500 Internal Server Error');
+
 // Set content type
 setContentType('text/plain');