mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fix for PHP Notice Undefined offset: 0, Line 168 of /e107_core/shortcodes/batch/user_shortcodes.php
This commit is contained in:
@@ -165,15 +165,15 @@ class user_shortcodes extends e_shortcode
|
||||
//require_once(e_HANDLER."level_handler.php");
|
||||
//$ldata = get_level($this->var['user_id'], $this->var['user_forums'], $this->var['user_comments'], $this->var['user_chats'], $this->var['user_visits'], $this->var['user_join'], $this->var['user_admin'], $this->var['user_perms'], $pref);
|
||||
$ldata = array();
|
||||
if (strstr($ldata[0], "IMAGE_rank_main_admin_image"))
|
||||
if (isset($ldata[0]) && strstr($ldata[0], "IMAGE_rank_main_admin_image"))
|
||||
{
|
||||
return LAN_USER_31;
|
||||
}
|
||||
elseif(strstr($ldata[0], "IMAGE"))
|
||||
elseif(isset($ldata[0]) && strstr($ldata[0], "IMAGE"))
|
||||
{
|
||||
return LAN_USER_32;
|
||||
}
|
||||
else
|
||||
elseif(isset($ldata[1]))
|
||||
{
|
||||
return $ldata[1];
|
||||
}
|
||||
|
Reference in New Issue
Block a user