`id` ASC",
array(bigintval(getRequestParameter('rid'))), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// List refs now
// Free memory
SQL_FREERESULT($result);
ORDER BY
`id` ASC", __FILE__, __LINE__);
- if (SQL_NUMROWS($result_main) > 0) {
+ if (!SQL_HASZERONUMS($result_main)) {
// At least one sponsor found!
$OUT = '';
while ($content = SQL_FETCHARRAY($result_main)) {