list($pid) = SQL_FETCHROW($result_pay);
SQL_FREERESULT($result_pay);
- if ((!empty($pid)) && ($pid > 0)) {
+ if (isValidId($pid)) {
// Payout id can be obtained
$content = array(
'pid' => $pid,
list($pid) = SQL_FETCHROW($result_pay);
SQL_FREERESULT($result_pay);
- if ((!empty($pid)) && ($pid > 0)) {
+ if (isValidId($pid)) {
// Payout id can be obtained
$content = array(
'pid' => $pid,
break;
} // END - switch
- if (isValidUserId($content['userid'])) {
+ if (isValidId($content['userid'])) {
// Member found otherwise it's a system task
$content['userid'] = generateUserProfileLink($content['userid']);
} else {