Joaogl Posted March 9, 2014 Report Share Posted March 9, 2014 Hello, I have two questions, Is it possible to print the error message and then kill the module if and error ocurres on a Module? Right now what is happening is that if something goes wrong on a Module it only shows the error and I'd like to have something that prints the error stops that module and continue with the rest of the website. Is it possible? Second question: if ((isset($_POST['Del'])) && (PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))) VirtualThaw2014Data::delete_mission(explode("Delete ", $_POST['Del'])[1]); this works just fine on my local server but when I move it to the host it gives me an error: Parse error: syntax error, unexpected '[' in /home/public_html/core/modules/VirtualThaw2014/VirtualThaw2014.php on line 23 The error is on the $_POST['Del'] any Idea why? Thank you, Joao Lourenco. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.