@@ -89,7 +89,9 @@ |
||
| 89 | 89 | $return++; |
| 90 | 90 | } elseif ((int) $line->fk_product > 0) { |
| 91 | 91 | if ($product->fetch($line->fk_product) > 0) { |
| 92 | - if ($product->status_buy) $return++; |
|
| 92 | + if ($product->status_buy) { |
|
| 93 | + $return++; |
|
| 94 | + } |
|
| 93 | 95 | } |
| 94 | 96 | } |
| 95 | 97 | } |
@@ -236,7 +236,9 @@ |
||
| 236 | 236 | print '<form method="POST" ' . ($withdolfichehead ? '' : 'style="margin-bottom: 30px;" ') . 'name="ticket" id="form_create_ticket" enctype="multipart/form-data" action="' . (!empty($this->param["returnurl"]) ? $this->param["returnurl"] : $_SERVER['PHP_SELF']) . '">'; |
| 237 | 237 | print '<input type="hidden" name="token" value="' . newToken() . '">'; |
| 238 | 238 | print '<input type="hidden" name="action" value="' . $this->action . '">'; |
| 239 | - if (!empty($object->id)) print '<input type="hidden" name="id" value="' . $object->id . '">'; |
|
| 239 | + if (!empty($object->id)) { |
|
| 240 | + print '<input type="hidden" name="id" value="' . $object->id . '">'; |
|
| 241 | + } |
|
| 240 | 242 | print '<input type="hidden" name="trackid" value="' . $this->trackid . '">'; |
| 241 | 243 | foreach ($this->param as $key => $value) { |
| 242 | 244 | print '<input type="hidden" name="' . $key . '" value="' . $value . '">'; |
@@ -113,7 +113,9 @@ |
||
| 113 | 113 | break; |
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | - if ($posy != 0) $poscursor['y'] = $posy; |
|
| 116 | + if ($posy != 0) { |
|
| 117 | + $poscursor['y'] = $posy; |
|
| 118 | + } |
|
| 117 | 119 | } |
| 118 | 120 | |
| 119 | 121 | // Define some properties |