I have a 'Basic Page' node that contains PHP code which returns the following error, when I edit and save it:
Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.
I believe it is not the real error; if I edit anything but the code, I don't get any error.
What I do is changing
<?php if (user_is_logged_in()): ?> to
<?php if (user_is_logged_in() && (inarray('approved user', $GLOBALS['user']->roles)))): ?>.
I'm pretty positive the code is right; the PHP filter is enabled, and the administrator user is the only user who can use it. I'm not really sure what else could be the issue.