From e571f681a03b441854d8da129a037e8b6e535bbc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jul 2015 15:39:50 +0200 Subject: [PATCH] Fix can refuse expense report --- htdocs/core/class/html.form.class.php | 4 ++-- htdocs/expensereport/card.php | 17 ++++++++++++----- .../expensereport/class/expensereport.class.php | 4 ++-- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 19e313607ea..765503b7a4d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3217,11 +3217,11 @@ class Form { foreach ($formquestion as $key => $input) { - if (isset($input['name'])) array_push($inputok,$input['name']); + //print "xx ".$key." rr ".is_array($input)."
\n"; + if (is_array($input) && isset($input['name'])) array_push($inputok,$input['name']); if (isset($input['inputko']) && $input['inputko'] == 1) array_push($inputko,$input['name']); } } - // Show JQuery confirm box. Note that global var $useglobalvars is used inside this template $formconfirm.= '