@@ -695,7 +695,7 @@ |
||
695 | 695 | }); |
696 | 696 | }); |
697 | 697 | </script> |
698 | -END; |
|
698 | +end; |
|
699 | 699 | } else { |
700 | 700 | // Price qty min |
701 | 701 | print '<tr><td class="fieldrequired">'.$langs->trans("PriceQtyMin").'</td>'; |
@@ -1270,7 +1270,7 @@ |
||
1270 | 1270 | |
1271 | 1271 | // TODO prendre en compte le filtre |
1272 | 1272 | foreach ($pragmas as $var) { |
1273 | - $sql = "PRAGMA $var"; |
|
1273 | + $sql = "pragma $var"; |
|
1274 | 1274 | $resql = $this->query($sql); |
1275 | 1275 | if ($resql) { |
1276 | 1276 | $obj = $this->fetch_row($resql); |
@@ -682,7 +682,7 @@ |
||
682 | 682 | { |
683 | 683 | $base = new DateTime("$year-03-21", new DateTimeZone("UTC")); |
684 | 684 | $days = easter_days($year); // Return number of days between 21 march and easter day. |
685 | - $tmp = $base->add(new DateInterval("P{$days}D")); |
|
685 | + $tmp = $base->add(new DateInterval("p{$days}d")); |
|
686 | 686 | return $tmp->getTimestamp(); |
687 | 687 | } |
688 | 688 |
@@ -221,7 +221,7 @@ |
||
221 | 221 | } |
222 | 222 | }); |
223 | 223 | </script> |
224 | -SCRIPT; |
|
224 | +script; |
|
225 | 225 | } |
226 | 226 | |
227 | 227 | ?> |
@@ -374,7 +374,7 @@ |
||
374 | 374 | echo <<<EOF |
375 | 375 | <script type="text/javascript"> |
376 | 376 | (function(){var d=document.domain;while (true){try{var A=window.parent.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})(); |
377 | -EOF; |
|
377 | +eof; |
|
378 | 378 | |
379 | 379 | if ($errorNumber && $errorNumber != 201) { |
380 | 380 | $fileUrl = ""; |
@@ -671,11 +671,11 @@ |
||
671 | 671 | $rankToUse = (int) $position; |
672 | 672 | if ($rankToUse != $line->oldcopy->position) { // check if position have a new value |
673 | 673 | foreach ($this->lines as $bl) { |
674 | - if ($bl->position >= $rankToUse AND $bl->position < ($line->oldcopy->position + 1)) { // move rank up |
|
674 | + if ($bl->position >= $rankToUse and $bl->position < ($line->oldcopy->position + 1)) { // move rank up |
|
675 | 675 | $bl->position++; |
676 | 676 | $bl->update($user); |
677 | 677 | } |
678 | - if ($bl->position <= $rankToUse AND $bl->position > ($line->oldcopy->position)) { // move rank down |
|
678 | + if ($bl->position <= $rankToUse and $bl->position > ($line->oldcopy->position)) { // move rank down |
|
679 | 679 | $bl->position--; |
680 | 680 | $bl->update($user); |
681 | 681 | } |