If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / empty delimiter includes/modules/shipping/zones.php l. 279

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

Started by swguy on 12 Feb 2012, 10:01 PM · Views: 4,288

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,762
Plugin Contributions:
56

Post #1 by swguy

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.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

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

drbyte

Sensei

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

Post #2 by drbyte

Need more info on steps to reproduce these symptoms.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.