Hi
I am trying to modify a class and I found this code in it:
$query = " SELECT * FROM menus WHERE show = '1'";
$id = $this->menuid;
if((isset($id)) && ($id != ''))
{
$query .= " and menuid in($id)";
}
$query .= " ORDER BY menuorder ASC";
$result = $db->query($query);
while($row = $db->dbarray($result))
{
@extract($row);
if(($checkuser == 1) && ($_COOKIE['mid'] != $var['Guestid']))
{
$menu .= $this->$menutitle();
}
elseif(($checkuser == 2) && ($_COOKIE['mid'] == $var['Guestid']))
{
$menu .= $this->$menutitle();
}
elseif($checkuser == 0)
{
$menu .= $this->$menutitle();
}
}
what does "$this->$menutitle()" refer to? and how does it work? To my understanding you can not put a $ sing after "->" in a class. $menutitle() does not seem to me as a variable neither as a function. What am i missing?