Zen Cart Logo
Forums / Bug Reports / empty delimiter includes/modules/shipping/zones.php l. 279

empty delimiter includes/modules/shipping/zones.php l. 279

Views: 4,283

Results 1 to 2 of 2
12 Feb 2012, 10:01 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,709
Plugin Contributions:
56

empty delimiter includes/modules/shipping/zones.php l. 279

Does this block ( includes/modules/shipping/zones.php l. 279)

      if (strstr(MODULE_SHIPPING_ZONES_SKIPPED, $dest_country)) {
        // don't show anything for this country
        $this->quotes = array();
      } else {
        if ($error == true) $this->quotes['error'] = MODULE_SHIPPING_ZONES_INVALID_ZONE;
      }   

need to be wrapped in

      if (zen_not_null(MODULE_SHIPPING_ZONES_SKIPPED)) { 
...
      }   

I'm seeing:
[26-Jan-2012 19:41:43] PHP Warning: strstr() [<a href='function.strstr'>function.strstr</a>]: Empty delimiter in /home/MYSITE/public_html/includes/modules/shipping/zones.php on line 279

PHP is 5.2.17, Zen 1.3.9h.

9 Aug 2012, 3:42 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: empty delimiter includes/modules/shipping/zones.php l. 279

Need more info on steps to reproduce these symptoms.