Then it probably makes more sense to just use an if statement like you originally had, as there is no "else" portion in this situation. If you do the following...
$pagesize = ($pagesize == NULL) ? 10 : $pagesize ;
...is equivalent to doing...
if($pagesize == NULL)
{
$pagesize = 10;
}
else
{
$pagesize = $pagesize;
}
...which is more obviously redundant.