  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: banner.php 686 2006-08-14 22:33:22Z hpdl $ |
| |
| 3 | + | $Id: banner.php 734 2006-08-20 17:56:47Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
65 | 65 | | |
| |
66 | 66 | | if ($Qbanner->numberOfRows() > 0) { |
| |
67 | 67 | | while ($Qbanner->next()) { |
  |
68 | | - | if (tep_not_null($Qbanner->value('expires_date'))) { |
| |
| 68 | + | if (!osc_empty($Qbanner->value('expires_date'))) { |
|
69 | 69 | | if (date('Y-m-d H:i:s') >= $Qbanner->value('expires_date')) { |
| |
70 | 70 | | $this->expire($Qbanner->valueInt('banners_id')); |
| |
71 | 71 | | } |
  |
72 | | - | } elseif (tep_not_null($Qbanner->valueInt('expires_impressions'))) { |
| |
| 72 | + | } elseif (!osc_empty($Qbanner->valueInt('expires_impressions'))) { |
|
73 | 73 | | if ( ($Qbanner->valueInt('expires_impressions') > 0) && ($Qbanner->valueInt('banners_shown') >= $Qbanner->valueInt('expires_impressions')) ) { |
| |
74 | 74 | | $this->expire($Qbanner->valueInt('banners_id')); |
| |
75 | 75 | | } |
| |
|
|
 |
… |
|
135 | 135 | | $Qbanner->execute(); |
| |
136 | 136 | | |
| |
137 | 137 | | if ($Qbanner->numberOfRows() > 0) { |
  |
138 | | - | if (tep_not_null($Qbanner->value('banners_html_text'))) { |
| |
| 138 | + | if (!osc_empty($Qbanner->value('banners_html_text'))) { |
  |
139 | 139 | | $banner_string = $Qbanner->value('banners_html_text'); |
| |
140 | 140 | | } else { |
| |
141 | 141 | | $banner_string = osc_link_object(osc_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $Qbanner->valueInt('banners_id')), osc_image(DIR_WS_IMAGES . $Qbanner->value('banners_image'), $Qbanner->value('banners_title')), 'target="_blank"'); |