typo3 check if query result is empty code example
Example: typo3 check if query result is empty
if($query->execute()->count())
{
return $query->execute();
}
else
{
return NULL;
}
if($query->execute()->count())
{
return $query->execute();
}
else
{
return NULL;
}