$result_act = FALSE;
$result_pay = FALSE;
+// ... and output variables
+$OUT_ACT = '';
+$OUT_PAY = '';
+
// Load all sponsor actions
$result_act = SQL_QUERY("SELECT
`m`.`title` AS `conv_title`,
if (!SQL_HASZERONUMS($result_act)) {
// Load all actions
- $OUT_ACT = '';
while ($content = SQL_FETCHARRAY($result_act)) {
// Load row template and switch color
$OUT_ACT .= loadTemplate('guest_sponsor_act_row', TRUE, $content);
$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_HASZERONUMS($result_pay)) {
// Load all pay types
- $OUT_PAY = '';
while ($content = SQL_FETCHARRAY($result_pay)) {
// Load row template and switch color
$OUT_PAY .= loadTemplate('guest_sponsor_pay_row', TRUE, $content);
} // END - while
} else {
// No pay types setuped so far!
- $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', FALSE, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', TRUE));
+ $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', TRUE, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', TRUE));
}
} else {
// No actions activated so far!