That code isPHP Warning: Undefined array key "is_registered" in ext/rmcgirr83/nationalflags/event/listener.php on line 197
Code: Select all
public function page_header_after($event)
{
if (!$this->user->data['is_registered'] || !$this->auth->acl_get('u_chgprofileinfo'))
{
return;
}
$page_name = substr($this->user->page['page_name'], 0, strpos($this->user->page['page_name'], '.'));
if ($page_name == 'ucp')
{
return;
}
if ($this->config['flags_display_msg'])
{
$this->template->assign_vars(array(
'S_FLAG_MESSAGE' => (empty($this->user->data['user_flag'])) ? true : false,
'L_FLAG_PROFILE' => $this->language->lang('USER_NEEDS_FLAG', '<a href="' . append_sid("{$this->root_path}ucp.$this->php_ext", 'i=profile') . '">', '</a>'),
));
}
}
Code: Select all
if (!$this->user->data['is_registered'] || !$this->auth->acl_get('u_chgprofileinfo'))
something like
Code: Select all
if(empty($this->user->data['is_registered']) || !$this->user->data['is_registered'] || !$this->auth->acl_get('u_chgprofileinfo'))
{
return;
}
Your thoughts thanks
And my apology i just saw there was another topic for this.... sorry i didnt look first... but that other one has not been answered yet