Merge pull request #6278 from hregis/4.0_bug2

Fix: avoid foreach error
This commit is contained in:
Laurent Destailleur 2017-01-16 00:43:41 +01:00 committed by GitHub
commit 25958c241b

View File

@ -44,6 +44,7 @@ $ref = GETPOST('ref');
$mode = (GETPOST('mode') ? GETPOST('mode') : 'byunit'); $mode = (GETPOST('mode') ? GETPOST('mode') : 'byunit');
$error = 0; $error = 0;
$mesg = ''; $mesg = '';
$graphfiles=array();
$socid=''; $socid='';
if (! empty($user->societe_id)) $socid=$user->societe_id; if (! empty($user->societe_id)) $socid=$user->societe_id;