Jump to content

Parse Error on Modules


Joaogl

Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...