Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

754
 
757
 
757
 
banner.php
_> 11 <?php
  22 /*
<> 3 -  $Id: banner.php 754 2006-08-23 11:56:56Z hpdl $
   3+  $Id: banner.php 757 2006-08-23 12:22:54Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
6565 
  6666       if ($Qbanner->numberOfRows() > 0) {
  6767         while ($Qbanner->next()) {
<> 68 -          if (tep_not_null($Qbanner->value('expires_date'))) {
   68+          if (!osc_empty($Qbanner->value('expires_date'))) {
6969             if (date('Y-m-d H:i:s') >= $Qbanner->value('expires_date')) {
  7070               $this->expire($Qbanner->valueInt('banners_id'));
  7171             }
<> 72 -          } elseif (tep_not_null($Qbanner->valueInt('expires_impressions'))) {
   72+          } elseif (!osc_empty($Qbanner->valueInt('expires_impressions'))) {
7373             if ( ($Qbanner->valueInt('expires_impressions') > 0) && ($Qbanner->valueInt('banners_shown') >= $Qbanner->valueInt('expires_impressions')) ) {
  7474               $this->expire($Qbanner->valueInt('banners_id'));
  7575             }
     
 !
135135       $Qbanner->execute();
  136136 
  137137       if ($Qbanner->numberOfRows() > 0) {
<> 138 -        if (tep_not_null($Qbanner->value('banners_html_text'))) {
   138+        if (!osc_empty($Qbanner->value('banners_html_text'))) {
<_ 139139           $banner_string = $Qbanner->value('banners_html_text');
  140140         } else {
  141141           $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"');