WHERE m.`action`='actions' AND r.is_active='Y'
ORDER BY m.sort ASC", __FILE__, __LINE__);
-if (SQL_NUMROWS($result_act) > 0) {
+if (!SQL_HASZERONUMS($result_act)) {
// Load all actions
$OUT_ACT = '';
while ($content = SQL_FETCHARRAY($result_act)) {
// Check for pay types
$result_pay = SQL_QUERY('SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` ORDER BY `pay_name` ASC', __FILE__, __LINE__);
- if (SQL_NUMROWS($result_pay) > 0) {
+ if (!SQL_HASZERONUMS($result_pay)) {
// Load all pay types
$OUT_PAY = '';
while ($content = SQL_FETCHARRAY($result_pay)) {