- if (SQL_NUMROWS($result) > 0) {
- // Make referal banner editable and deletable
- $OUT = ''; $SW = 2;
- while ($content = SQL_FETCHARRAY($result)) {
- // Preapre data for the row
- // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
- $content = array(
- 'sw' => $SW,
- 'id' => $content['id'],
- 'url' => $content['url'],
- 'alt' => $content['alternate'],
- 'vis' => translateYesNo($content['visible']),
- 'cnt' => $content['counter'],
- 'clx' => $content['clicks']
- );
-
+ if (!ifSqlHasZeroNums($result)) {
+ // Make referral banner editable and deletable
+ $OUT = '';
+ while ($content = sqlFetchArray($result)) {