File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -245,6 +245,9 @@ public function validateAddForm(&$info)
245245 return false ;
246246 }
247247
248+ if (!is_array ($ info )) {
249+ $ info = [];
250+ }
248251 $ info = $ this ->_form ->getInfo ($ this ->_vars , $ info );
249252 return $ info ;
250253 }
@@ -446,6 +449,9 @@ public function validateEditForm(&$info)
446449 if (!$ this ->_form ->validate ($ this ->_vars )) {
447450 return false ;
448451 }
452+ if (!is_array ($ info )) {
453+ $ info = [];
454+ }
449455 $ info = $ this ->_form ->getInfo ($ this ->_vars , $ info );
450456 if ($ this ->_type == 'matrix ' ) {
451457 /* Collapse the array for default/guest/creator. */
@@ -514,6 +520,9 @@ public function validateDeleteForm(&$info)
514520
515521 if ($ form_submit == Horde_Core_Translation::t ('Delete ' )) {
516522 if ($ this ->_form ->validate ($ this ->_vars )) {
523+ if (!is_array ($ info )) {
524+ $ info = [];
525+ }
517526 return $ this ->_form ->getInfo ($ this ->_vars , $ info );
518527 }
519528 } elseif (!empty ($ form_submit )) {
You can’t perform that action at this time.
0 commit comments