Ignore:
Timestamp:
10/28/07 14:52:50 (5 years ago)
Author:
hverton
Message:

fixed not properly storing the ads1 and ads2 template variables in case no records were found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/advertising/php-files/modules/advertising/advertising_admin.php

    r1000 r1051  
    603603                $ads1[] = $data2; 
    604604            } 
    605             $variables['ads1'] = $ads1; 
    606         } 
     605        } 
     606        $variables['ads1'] = $ads1; 
    607607        // retrieve all expired ads 
    608608        $result2 = dbquery("SELECT * FROM ".$db_prefix."advertising WHERE adverts_expired = '1' AND adverts_userid = '".$data['user_id']."' ORDER BY adverts_id DESC"); 
     
    633633                $ads2[] = $data2; 
    634634            } 
    635             $variables['ads2'] = $ads2; 
    636         } 
     635        } 
     636        $variables['ads2'] = $ads2; 
    637637        $c++; 
    638638        $template_panels[] = array('type' => 'body', 'name' => 'modules.advertising.overview'.$c, 'template' => 'modules.advertising.overview.tpl', 'locale' => $locale_file); 
Note: See TracChangeset for help on using the changeset viewer.