News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Bug in mod_vmmenu when disconnected

Started by Studio 42, May 30, 2015, 21:36:23 PM

Previous topic - Next topic

Studio 42

Hi,
When you get disconnected in admin(session expired). YOu have an error in the module. mod_vmmenu/tmpl/default.php line 45(in Joomla 3).
This comes because you have no autorisation(sure because you are disconnected).
My currently fix is to add :
if(empty($result->submenu)) $result=null;
before
return $result;

But i think the best is to verify if we have an user in vmmenu.php file after:
$user = JFactory::getUser();
add
if ($user->guest) return;

That you know, this is only a warning error and only visible when you set error reporting to write or display warnings.

Patrick,