Errors when not logged in as Administrator
-
We get the following errors when logging in as a non administrative user:
Warning: array_key_exists() expects parameter 2 to be array, boolean given in XXX/wp-content/plugins/leadin/admin/leadin-admin.php on line 79
There is also an error at line 95 of class-leadin.php. This is because it’s calling a non-existent option when logged in as any other user than an administrator. Additionally it checks for capabilities that aren’t even there.
We have manually quick-fixed this by using an empty array but this obviously isn’t the right way to fix it and will break when the plugin next updates. It’s been like this for several versions now!
The topic ‘Errors when not logged in as Administrator’ is closed to new replies.