Missing argument 2 for enleverreadyness()
means the function are not receiving the second arguments.
which is $nbrEnlever
first, you got to make sure how many call are actually being called to EnleverReadyness() function because the php error won't show u where they call from.
simple test
<?php // line 1
function a($a, $b) { // line 2
} // line 3
a('apple'); // line 4
?>
it will show me
Warning: Missing argument 2 for a() in D:\Pub\a.php on line 2
PHP Warning: Missing argument 2 for a() in D:\Pub\a.php on line 2
where we wish them to show us line 4
i believe that there is one function call to EnleverReadyness() that don't provide 2nd argument / parameter.