diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php index 11acc1914a1..7827abad53a 100644 --- a/htdocs/adherents/index.php +++ b/htdocs/adherents/index.php @@ -294,12 +294,12 @@ if ($resql) $staticmember->id=$obj->rowid; $staticmember->lastname=$obj->lastname; $staticmember->firstname=$obj->firstname; - if (! empty($obj->fk_soc)) { - $staticmember->socid = $obj->fk_soc; + if (! empty($obj->fk_soc)) { + $staticmember->socid = $obj->fk_soc; $staticmember->fetch_thirdparty(); - $staticmember->name=$staticmember->thirdparty->name; - } else { - $staticmember->name=$obj->company; + $staticmember->name=$staticmember->thirdparty->name; + } else { + $staticmember->name=$obj->company; } $staticmember->ref=$staticmember->getFullName($langs); print ''.$subscriptionstatic->getNomUrl(1).''; diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php index 4752a36a65a..075510fa915 100644 --- a/htdocs/adherents/liste.php +++ b/htdocs/adherents/liste.php @@ -268,12 +268,12 @@ if ($resql) $memberstatic->lastname=$objp->lastname; $memberstatic->firstname=$objp->firstname; - if (! empty($objp->fk_soc)) { - $memberstatic->socid = $objp->fk_soc; - $memberstatic->fetch_thirdparty(); - $companyname=$memberstatic->thirdparty->name; - } else { - $companyname=$objp->company; + if (! empty($objp->fk_soc)) { + $memberstatic->socid = $objp->fk_soc; + $memberstatic->fetch_thirdparty(); + $companyname=$memberstatic->thirdparty->name; + } else { + $companyname=$objp->company; } $var=!$var; diff --git a/htdocs/admin/menus/edit.php b/htdocs/admin/menus/edit.php index fff20023c05..3e747760544 100644 --- a/htdocs/admin/menus/edit.php +++ b/htdocs/admin/menus/edit.php @@ -116,18 +116,18 @@ if ($action == 'add') $leftmenu=''; $mainmenu=''; if (! empty($_POST['menuId']) && ! is_numeric($_POST['menuId'])) { - $tmp=explode('&',$_POST['menuId']); - foreach($tmp as $s) - { - if (preg_match('/fk_mainmenu=/',$s)) - { - $mainmenu=preg_replace('/fk_mainmenu=/','',$s); - } - if (preg_match('/fk_leftmenu=/',$s)) - { - $leftmenu=preg_replace('/fk_leftmenu=/','',$s); - } - } + $tmp=explode('&',$_POST['menuId']); + foreach($tmp as $s) + { + if (preg_match('/fk_mainmenu=/',$s)) + { + $mainmenu=preg_replace('/fk_mainmenu=/','',$s); + } + if (preg_match('/fk_leftmenu=/',$s)) + { + $leftmenu=preg_replace('/fk_leftmenu=/','',$s); + } + } } $langs->load("errors"); diff --git a/htdocs/admin/system/phpinfo.php b/htdocs/admin/system/phpinfo.php index 13b7cef0c09..4167f943d32 100644 --- a/htdocs/admin/system/phpinfo.php +++ b/htdocs/admin/system/phpinfo.php @@ -23,7 +23,7 @@ */ require '../../main.inc.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; $langs->load("admin"); @@ -40,22 +40,22 @@ llxHeader(); $title='InfoPHP'; -if (isset($title)) -{ - print_fiche_titre($langs->trans($title), '', 'setup'); -} +if (isset($title)) +{ + print_fiche_titre($langs->trans($title), '', 'setup'); +} -// Get php_info array +// Get php_info array $phparray=phpinfo_array(); foreach($phparray as $key => $value) { //print_titre($key); - print ''; - print ''; + print '
'; + print ''; //print ''; - print ''; - print ''; - print "\n"; + print ''; + print ''; + print "\n"; $var=true; //var_dump($value); @@ -65,10 +65,10 @@ foreach($phparray as $key => $value) { $var=!$var; print ''; - print ''; + print ''; $valtoshow=$keyvalue; if ($keyparam == 'X-ChromePhp-Data') $valtoshow=dol_trunc($keyvalue,80); - print ''; + print ''; print ''; } else @@ -77,13 +77,13 @@ foreach($phparray as $key => $value) print ''; print ''; $i=0; - foreach($keyvalue as $keyparam2 => $keyvalue2) + foreach($keyvalue as $keyparam2 => $keyvalue2) { print ''; } @@ -92,7 +92,7 @@ foreach($phparray as $key => $value) } print '
'.$langs->trans("Parameter").''.$key.''.$langs->trans("Value").'
'.$key.''.$langs->trans("Value").'
'.$keyparam.''.$keyparam.''.$valtoshow.''.$valtoshow.'
'.$keyparam.''; $valtoshow=$keyvalue2; if ($keyparam == 'disable_functions') $valtoshow=join(', ',explode(',',trim($valtoshow))); //print $keyparam2.' = '; - print $valtoshow; + print $valtoshow; $i++; print '

'; } - + llxFooter(); diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php index 60ce5d3b11b..5d9a6b5855a 100755 --- a/htdocs/commande/orderstoinvoice.php +++ b/htdocs/commande/orderstoinvoice.php @@ -40,12 +40,12 @@ $langs->load('orders'); $langs->load('deliveries'); $langs->load('companies'); -if (! $user->rights->facture->creer) +if (! $user->rights->facture->creer) accessforbidden(); -$id = (GETPOST('id')?GETPOST("id"):GETPOST("facid")); // For backward compatibility -$ref = GETPOST('ref','alpha'); -$action = GETPOST('action','alpha'); +$id = (GETPOST('id')?GETPOST("id"):GETPOST("facid")); // For backward compatibility +$ref = GETPOST('ref','alpha'); +$action = GETPOST('action','alpha'); $confirm = GETPOST('confirm','alpha'); $sref = GETPOST('sref'); $sref_client = GETPOST('sref_client'); diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 60b9ba8ad4c..18364723a90 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1856,8 +1856,8 @@ if ($action == 'create') { $newinvoice_static->id=$key; $newinvoice_static->ref=$valarray['ref']; - $newinvoice_static->statut=$valarray['status']; - $newinvoice_static->type=$valarray['type']; + $newinvoice_static->statut=$valarray['status']; + $newinvoice_static->type=$valarray['type']; $newinvoice_static->paye=$valarray['paye']; $optionsav.='