fixed 500 error on photos.php