diff --git a/htdocs/compta/deplacement/index.php b/htdocs/compta/deplacement/index.php index 361dc4f798a..517beb81dfa 100644 --- a/htdocs/compta/deplacement/index.php +++ b/htdocs/compta/deplacement/index.php @@ -100,14 +100,17 @@ if ($resql) while ($i < $num) { $objp = $db->fetch_object($resql); + $soc = new Societe($db); - $soc->fetch($objp->socid); + if ($objp->socid) $soc->fetch($objp->socid); + $var=!$var; print "