Announcement

Collapse
No announcement yet.

unexpected ";" error when generating code !!!!

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

  • unexpected ";" error when generating code !!!!

    Hello ,

    This doesn't work because a ";" is added on some lines :

    if ($mmajtype == "C" AND $mSiCheckIn == 0){
    $mdate1 = $p_date;
    }
    elseif ($mdate1 < sc_date($p_date, "yyyy-mm-dd", "-", 1, 0, 0)){
    $mdate1 = sc_date($p_date, "yyyy-mm-dd", "-", 1, 0, 0);
    }

    if (sc_date_empty($mdate2)){
    $mdate2=sc_date($mdate1, "yyyy-mm-dd", "+", 1, 0, 0);
    }

    $start=new datetime($mdate1);
    $end =new datetime(sc_date($mdate2, "yyyy-mm-dd", "-", 1, 0, 0));


    but this works after change :


    $datetmp = sc_date($p_date, "yyyy-mm-dd", "-", 1, 0, 0);

    if ($mmajtype == "C" AND $mSiCheckIn == 0){
    $mdate1 = $p_date;
    }
    elseif ($mdate1 <$datetmp){
    $mdate1 = $datetmp;
    }

    $datetmp = sc_date($mdate1, "yyyy-mm-dd", "+", 1, 0, 0);

    if (sc_date_empty($mdate2)){
    $mdate2=$datetmp;
    }

    $start=new datetime($mdate1);

    $datetmp = sc_date($mdate2, "yyyy-mm-dd", "-", 1, 0, 0);
    $end =new datetime($datetmp);


    Thanks to fixe the problem !!!

  • #2
    Hello,

    Issue reported to our bugs team.

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      Hello Nacyil,

      Could you please forward a SQL Dump (create statement) of all tables involved on this application to bugs@scriptcase.net. Also send a link of this topic as well.

      regards,
      Bernhard Bernsmann

      Comment

      Working...
      X