X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fsimple_crud_class.inc;h=2669bf043e0fbf51fd583ea87f999744f1d1eb69;hb=f890a44c8d53ed650081b29380c8c8d3c80eeac0;hp=40c8ebea6b29b5653b2a746284015329473dee33;hpb=63980314a1bb4aadecfc02b94c3bede347a50755;p=fa-stable.git diff --git a/includes/ui/simple_crud_class.inc b/includes/ui/simple_crud_class.inc index 40c8ebea..2669bf04 100644 --- a/includes/ui/simple_crud_class.inc +++ b/includes/ui/simple_crud_class.inc @@ -111,7 +111,7 @@ class simple_crud { if (isset($_POST[$this->name.$m])) { unset($_POST['_focus']); // focus on first form entry $Ajax->activate($this->name.'_div'); - $val = @key($_POST[$this->name.$m]); + $val = is_array($_POST[$this->name.$m]) ? key($_POST[$this->name.$m]) : null; $this->selected_id = $val!==null ? @quoted_printable_decode($val) : $this->_none; return $m; }