r2116 + process.php: don't fail silently
[racktables] / process.php
index fe5f0b3ce9b082da37e0336e132c21eb5720a290..d4fca85566c1198f663f267bf1bda1c982401ab0 100644 (file)
@@ -20,7 +20,13 @@ if (!isset ($delayauth[$pageno][$tabno][$op]) and !permitted())
        $location = buildWideRedirectURL ($errlog);
 }
 else
+{
        $location = $ophandler[$pageno][$tabno][$op]();
+       if (empty ($location))
+       {
+               showError ('Operation handler failed to return its status', __FILE__);
+       }
+}
 header ("Location: " . $location);
 
 ?>