@@ -217,7 +217,7 @@ |
||
| 217 | 217 | { |
| 218 | 218 | $string = ""; |
| 219 | 219 | $chaine = "abcdefghijklmnopqrstuvwxyz123456789"; |
| 220 | - mt_srand((int)((float)microtime() * 1000000)); |
|
| 220 | + mt_srand((int) ((float) microtime() * 1000000)); |
|
| 221 | 221 | for ($i = 0; $i < $car; $i++) { |
| 222 | 222 | $string .= $chaine[mt_rand() % strlen($chaine)]; |
| 223 | 223 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | // For MultiCompany module. |
| 44 | 44 | // Do not use GETPOST here, function is not defined and this test must be done before including main.inc.php |
| 45 | 45 | // Because 2 entities can have the same ref. |
| 46 | -$entity = (!empty($_GET['e']) ? (int)$_GET['e'] : (!empty($_POST['e']) ? (int)$_POST['e'] : 1)); |
|
| 46 | +$entity = (!empty($_GET['e']) ? (int) $_GET['e'] : (!empty($_POST['e']) ? (int) $_POST['e'] : 1)); |
|
| 47 | 47 | if (is_numeric($entity)) { |
| 48 | 48 | define("DOLENTITY", $entity); |
| 49 | 49 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | // For MultiCompany module. |
| 46 | 46 | // Do not use GETPOST here, function is not defined and define must be done before including main.inc.php |
| 47 | 47 | // Because 2 entities can have the same ref. |
| 48 | -$entity = (!empty($_GET['e']) ? (int)$_GET['e'] : (!empty($_POST['e']) ? (int)$_POST['e'] : 1)); |
|
| 48 | +$entity = (!empty($_GET['e']) ? (int) $_GET['e'] : (!empty($_POST['e']) ? (int) $_POST['e'] : 1)); |
|
| 49 | 49 | if (is_numeric($entity)) { |
| 50 | 50 | define("DOLENTITY", $entity); |
| 51 | 51 | } |