if ($foruminfo[gallery] == '1'){ if ($counter == 1 AND $fetchtype == 'post' AND !$changed AND $vbulletin->GPC['pagenumber'] == 1) { $fetchtype = 'gallery_postbit'; $changed = true; } }