Fix PHP warnings printed in javascript

This commit is contained in:
atm-ph 2018-10-25 12:01:17 +02:00
parent 277655b911
commit f41e7e05e1

View File

@ -7094,6 +7094,8 @@ function printCommonFooter($zone='private')
$relativepathstring = preg_replace('/^\//', '', $relativepathstring); $relativepathstring = preg_replace('/^\//', '', $relativepathstring);
$relativepathstring = preg_replace('/^custom\//', '', $relativepathstring); $relativepathstring = preg_replace('/^custom\//', '', $relativepathstring);
$tmpqueryarraywehave=explode('&', dol_string_nohtmltag($_SERVER['QUERY_STRING'])); $tmpqueryarraywehave=explode('&', dol_string_nohtmltag($_SERVER['QUERY_STRING']));
if (!empty($user->default_values[$relativepathstring]['focus']))
{
foreach($user->default_values[$relativepathstring]['focus'] as $defkey => $defval) foreach($user->default_values[$relativepathstring]['focus'] as $defkey => $defval)
{ {
$qualified = 0; $qualified = 0;
@ -7119,6 +7121,9 @@ function printCommonFooter($zone='private')
} }
} }
} }
}
if (!empty($user->default_values[$relativepathstring]['mandatory']))
{
foreach($user->default_values[$relativepathstring]['mandatory'] as $defkey => $defval) foreach($user->default_values[$relativepathstring]['mandatory'] as $defkey => $defval)
{ {
$qualified = 0; $qualified = 0;
@ -7146,6 +7151,7 @@ function printCommonFooter($zone='private')
} }
} }
} }
}
// Google Analytics // Google Analytics
// TODO Add a hook here // TODO Add a hook here