ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Jorin on July 14, 2014, 03:44:11 am

Title: [RC1] Undefined index: userpicpersonal
Post by: Jorin on July 14, 2014, 03:44:11 am
Error: Undefined
8: Undefined index: userpicpersonal
http://elkarte.hybrid-piloten.de/index.php?action=profile;area=forumprofile;u=915 (http://elkarte.hybrid-piloten.de/index.php?action=profile;area=forumprofile;u=915)
File:
/www/htdocs/w00f21f1/elkarte/sources/subs/Profile.subs.php (http://elkarte.hybrid-piloten.de/index.php?action=admin;area=logs;sa=errorlog;activity=file;file=L3d3dy9odGRvY3MvdzAwZjIxZjEvZWxrYXJ0ZS9zb3VyY2VzL3N1YnMvUHJvZmlsZS5zdWJzLnBocA==;line=2049)
Row: 2049

This user is using the standard avatar/userpic.
Title: Re: [RC1] Undefined index: userpicpersonal
Post by: Spuds on July 14, 2014, 09:32:57 am
I can't reproduce this one on my local ... 

We can protect against it with an isset($_POST['userpicpersonal']) && in the two statements
@emanuele what do you think?
Title: Re: [RC1] Undefined index: userpicpersonal
Post by: emanuele on July 14, 2014, 10:02:38 am
I guess the error is present when allow_external is false.

Yeah, isset on the $_POST, or include the $valid_http and $valid_https in to an:
Code: [Select]
if ($value == 'external')
since those two seem to be relevant only in this case.