Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Location
    Dark Side of the Moon
    Posts
    987
    Plugin Contributions
    1

    Default [Not a bug] customers.php code error

    Please look at
    /admin/customers.php

    Starting at line 138:
    Code:
            if (ACCOUNT_DOB == 'true') {
              if (ENTRY_DOB_MIN_LENGTH >0) {
                if (checkdate(substr(zen_date_raw($customers_dob), 4, 2), substr(zen_date_raw($customers_dob), 6, 2), substr(zen_date_raw($customers_dob), 0, 4))) {
                  $entry_date_of_birth_error = false;
                } else {
                  $error = true;
                  $entry_date_of_birth_error = true;
                }
              }
            } else {
                $customers_dob = '0001-01-01 00:00:00';
            }
    should be:
    Code:
            if (ACCOUNT_DOB == 'true') {
              if (ENTRY_DOB_MIN_LENGTH >0) {
                if (checkdate(substr(zen_date_raw($customers_dob), 4, 2), substr(zen_date_raw($customers_dob), 6, 2), substr(zen_date_raw($customers_dob), 0, 4))) {
                  $entry_date_of_birth_error = false;
                } else {
                  $error = true;
                  $entry_date_of_birth_error = true;
                }
              } else {
                $customers_dob = '0001-01-01 00:00:00';
              }
            }
    Please correct me if I'm wrong! But I found this when merging my own mods into customer.php.
    -Chadderuski

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: 1.3.9d customers.php code error

    No, you're wrong. The 1.3.9d file is correct, and is a response to a previous legitimate bug report.
    .

    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.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 12 Feb 2013, 03:45 PM
  2. Replies: 2
    Last Post: 16 Oct 2011, 11:27 PM
  3. [Not a Bug] V1.39h Application_top error in code
    By calderwood in forum Bug Reports
    Replies: 1
    Last Post: 4 Aug 2011, 03:52 AM
  4. Replies: 1
    Last Post: 8 May 2010, 07:32 PM
  5. Replies: 2
    Last Post: 14 Sep 2006, 04:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg