Picture Display Error

Became confused while analyzing redirect:/index.php at picpage.pl line 187.