function updateAllSoc(&$PDOdb) { global $langs, $conf, $user, $db; $TUser = TCommercialCategory::getUser($PDOdb, $this->fk_category); // useless, just for popup $nb_user = count($TUser); $TSociete = TCommercialCategory::getSociete($PDOdb, $this->fk_category); $nb_soc = count($TSociete); foreach ($TSociete as &$soc) { self::updateSociete($PDOdb, $soc); } setEventMessage($langs->trans('CategUserAffectation', $nb_user, $nb_soc)); }