You need to set if (isset($_GET['admin_key'])) to test that there is an admin_key variable in the $_GET array before testing the admin_key value against the setting in the context.

CommentFileSizeAuthor
#1 1965826-1.patch537 bytesthedavidmeister

Comments

thedavidmeister’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new537 bytes

Patch attached. Please let me know if it helps.

inventlogic’s picture

Thanks. Yes this works. Can you can commit please?

thedavidmeister’s picture

Status: Needs review » Fixed

done. Let me know if you have any further troubles.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.