diff --git a/e107_core/shortcodes/batch/user_shortcodes.php b/e107_core/shortcodes/batch/user_shortcodes.php index f80168642..57269fd21 100644 --- a/e107_core/shortcodes/batch/user_shortcodes.php +++ b/e107_core/shortcodes/batch/user_shortcodes.php @@ -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]; }