Fix: replace siezof by count

This commit is contained in:
Regis Houssin
2011-09-21 10:46:03 +00:00
parent 581a689869
commit 066b6146c0
4 changed files with 5 additions and 5 deletions

View File

@@ -165,7 +165,7 @@ for ($s = 0 ; $s < GEN_NUMBER_COMMANDE ; $s++)
$com = new Commande($db);
$com->socid = 4;
$com->date_commande = $dates[rand(1, sizeof($dates)-1)];
$com->date_commande = $dates[rand(1, count($dates)-1)];
$com->note = 'A comment';
$com->source = 1;
$com->fk_project = 0;