Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#49 Problem when selecting a new avitar

closed-fixed
nobody
None
5
2004-10-20
2004-10-18
Steven Levin
No

Found in current CVS version:

When going to the Avitar Gallery and choose select from
the drop-down and click go without checking an image it
removes the association. Is this expected?

What I would expect is it to not do anything, just go
back to the users settings with the same avitar as
before, or show an error message.

Bug also generates this php warning.

Warning: pos(): Passed variable is not an array or
object in
/srv/www/htdocs/phpwebsite/steven/phpwebsite/mod/phpwsbb/index.php
on line 59

Quick fix is to change line 59 of index.php from:

$_POST['IMGLib_selected_image'] =
pos($_POST['IMGLib_selected_image']);

to:

if(isset($_POST['IMGLib_selected_image']))
$_POST['IMGLib_selected_image'] =
pos($_POST['IMGLib_selected_image']);

I will commit this fix if it is satisfactory, just let
me know.

Steven

Discussion

  • Don Seiler
    Don Seiler
    2004-10-20

    • status: open --> closed-fixed
     
  • Don Seiler
    Don Seiler
    2004-10-20

    Logged In: YES
    user_id=61900

    Committed.