For search result pages need to
pick out catid= from referer
return array();
}
$memberId = filter_var($_REQUEST['member_id'], FILTER_VALIDATE_INT);
- $pattern = '/(.*)-([0-9]*)/';
+ $pattern = '/.*-([0-9]*)|catid=([0-9]*)\&/';
if (preg_match($pattern, $_SERVER['HTTP_REFERER'], $matches)) {
$refererPage = filter_var($matches[2], FILTER_VALIDATE_INT);
if ($refererPage) {
$id = $refererPage;
}
}
-
$stack = array();
$memberId = filter_var($_REQUEST['member_id'], FILTER_VALIDATE_INT);