--- a/update-compra.php Wed Nov 08 22:43:00 2006 +0100
+++ b/update-compra.php Wed Nov 08 23:03:52 2006 +0100
@@ -423,6 +423,11 @@
/* Posem a 0 els toca_pagar finals */
foreach($habitants as $j)
$toca_pagar[$j["id"]] = 0.;
+ for($i=0; $i < $_POST["num_altres"]; $i++)
+ {
+ $persona = $_POST["altres"][$i];
+ $toca_pagar[$persona] = 0.;
+ }
for ($i = 1; $i <= $_POST["num_excepcions"]; $i++)
{
@@ -438,6 +443,7 @@
$preu_per_compradors -= $_POST["epreu"][$i];
+ $participants = 0;
foreach($habitants as $j)
if (isset($_POST["eparticipat"][$i][$j["id"]]))
$participants++;