Skip to content

Commit

Permalink
Fix grid to show error when decrypting encrypted forms fails
Browse files Browse the repository at this point in the history
  • Loading branch information
joeke committed Apr 26, 2017
1 parent 7abe4e7 commit 426469f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/components/formit/processors/mgr/form/getlist.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public function prepareRow(xPDOObject $object)
$values = $object->decrypt($ff['values']);
if (!is_array(json_decode($values, true))) {
$values = $object->decrypt($ff['values'], 1);
if (!is_array(json_decode($values, true))) {
$values = json_encode(array('error' => '<i>data corrupt</i>'));
}
}
$ff['values'] = $values;
}
Expand Down

0 comments on commit 426469f

Please sign in to comment.