1
I have installed XOOPS 2.3.3, module CBB 3.08, a module multieditor 0.2!
I need to anonymity could write in the forum and create new topics! But multieditor module gives an error:
Fatal error: Call to a member function isAdmin () on a non-object in / home / avb / avb.ru / docs / modules / multieditor / multieditor_include.php on line 55
Line 55:
if ($xoopsUser->isAdmin()) // CHECK IF CURRENT USER IS AN ADMINISTRATOR (beta)
{
//echo ("ADMIN");//debug
// get Admin group editor
// COME OTTENGO ID del GRUPPO ADMINISTRATORI????
$user_editor_id = get_group_module_editor($main_module_id,1); // '1' is administrator group (I think???)
// COME OTTENGO ID del GRUPPO ADMINISTRATORI????
$user_editor = get_editor_by_id($user_editor_id['editor_id']);
}
else
{
echo ("NOT ADMIN");//debug
$temp_editors = array();
foreach ($user_groups as $user_group)
{
$temp = get_group_module_editor($main_module_id,$user_group);
$temp_editors[] = get_editor_by_id($temp['editor_id']);
}
foreach ($temp_editors as $temp_editor)
{
if (($temp_editor['weight'] < $compare_weight) || !isset($compare_weight))
{
$user_editor = $temp_editor;
$compare_weight = $temp_editor['weight'];
}
}
}
how to fix this error? Thanks!