For Bludit 2.3.4 the existing line is:
- IF ( in_array($Login->role(), array("editor","admin",true) )) {
The folowing:
- IF ( in_array($login->role(), array("editor","admin",true) )) {
And this:Fatal error: Call to a member function role() on null in /websites/123reg/LinuxPackage21/bl/ak/es/blakesheaven.co.uk/public_html/bludit3beta/bl-plugins/Auto-Archive-Menu-Plus-More/plugin.php on line 336
- IF ( checkrole(array("admin","editor"), true) ) {
- IF ( checkrole("admin") ) {
Can you please advise how I can check if the logged in user is either an Admin or Editor?Fatal error: Call to a member function role() on null in /websites/123reg/LinuxPackage21/bl/ak/es/blakesheaven.co.uk/public_html/bludit3beta/bl-kernel/functions.php on line 642