Announcement

Collapse
No announcement yet.

Generation error

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Generation error

    If I create a small library function to check for a valid date then generating process always gives me an error:

    Undefined offset: 4 | Script: C:\Program Files (x86)\NetMake\v71\wwwroot\scriptcase\devel\class\g enerator\nmDados.class.php linha: 6734

    This is the library function

    Code:
    function validateDateDMY($mydate)
    {
       if (preg_match('/^(\d{2})-(\d{2})-(\d{4})$/', $mydate, $datebit)) {
          return checkdate($datebit[1] , $datebit[3] , $datebit[2]);
       } else {
          return false;
       }
    
    }
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

  • #2
    Hello,

    Issue reported to our bugs team.

    regards,
    Bernhard Bernsmann

    Comment

    Working...
    X