VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Studio 42 on May 30, 2015, 21:36:23 PM

Title: Bug in mod_vmmenu when disconnected
Post by: Studio 42 on May 30, 2015, 21:36:23 PM
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,