From 55d78db99f8d8af8fcd33a0989ec9597572cee4d Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 4 May 2020 18:03:23 +0200 Subject: [PATCH] Fix some PHP warnings --- public_html/includes/routes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public_html/includes/routes.php b/public_html/includes/routes.php index 78b83a26..6987a4cc 100644 --- a/public_html/includes/routes.php +++ b/public_html/includes/routes.php @@ -398,11 +398,11 @@ function handle_LSobject_search($request) { if (LSsession :: canExecuteLSsearchCustomAction($LSsearch,$name)) { $LSview_actions[] = array ( 'label' => ((isset($config['label']))?__($config['label']):__($name)), - 'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False), + 'hideLabel' => ((isset($config['hideLabel']) && $config['hideLabel'])?$config['hideLabel']:False), 'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False), 'url' => "object/$LSobject/customAction/$name", 'action' => ((isset($config['icon']))?$config['icon']:'generate'), - 'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'') + 'class' => 'LScustomActions'.((isset($config['noConfirmation']) && $config['noConfirmation'])?' LScustomActions_noConfirmation':'') ); } } @@ -916,11 +916,11 @@ function handle_LSobject_show($request) { if (LSsession :: canExecuteCustomAction($dn, $LSobject, $name)) { $LSview_actions[] = array ( 'label' => ((isset($config['label']))?__($config['label']):__($name)), - 'hideLabel' => ((isset($config['hideLabel']))?$config['hideLabel']:False), + 'hideLabel' => ((isset($config['hideLabel']) && $config['hideLabel'])?$config['hideLabel']:False), 'helpInfo' => ((isset($config['helpInfo']))?__($config['helpInfo']):False), 'url' => "object/$LSobject/".urlencode($dn)."/customAction/".urlencode($name), 'action' => ((isset($config['icon']))?$config['icon']:'generate'), - 'class' => 'LScustomActions'.(($config['noConfirmation'])?' LScustomActions_noConfirmation':'') + 'class' => 'LScustomActions'.((isset($config['noConfirmation']) && $config['noConfirmation'])?' LScustomActions_noConfirmation':'') ); } }