Monkuar Posted February 8, 2012 Share Posted February 8, 2012 list( $this->member['AVATAR_WIDTH'] , $this->member['AVATAR_HEIGHT'] ) = explode ("x", $this->member['avatar_size']); I get Notice: Undefined offset: 1 any idea? Is is the avatar_width or avatar_height? I also tried $this->member['AVATAR_HEIGHT'] = (empty($this->member['AVATAR_HEIGHT'])) ? '' : $this->member['AVATAR_HEIGHT']; $this->member['AVATAR_WIDTH'] = (empty($this->member['AVATAR_WIDTH'])) ? '' : $this->member['AVATAR_WIDTH']; $this->member['avatar_size'] = (empty($this->member['avatar_size'])) ? '' : $this->member['avatar_size']; still doesn't work or get rid of the error Quote Link to comment https://forums.phpfreaks.com/topic/256697-wats-this-code-doing/ Share on other sites More sharing options...
scootstah Posted February 8, 2012 Share Posted February 8, 2012 What does $this->member['avatar_size'] contain? Quote Link to comment https://forums.phpfreaks.com/topic/256697-wats-this-code-doing/#findComment-1315947 Share on other sites More sharing options...
ManiacDan Posted February 8, 2012 Share Posted February 8, 2012 The error comes from the fact that $this->member['avatar_size'] does not contain a lowercase 'x'. That line you posted simply takes $this->member['avatar_size'], and says "the item before the x is the width, and the item after the x is the height." It assumes an x will be there, producing two items. Quote Link to comment https://forums.phpfreaks.com/topic/256697-wats-this-code-doing/#findComment-1315969 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.