mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Admin-UI: Make sure data is returned as an array when stored as one. Attention: @SecretR
This commit is contained in:
parent
4c1cbab300
commit
6e598c9430
@ -3418,6 +3418,12 @@ class e_form
|
||||
case 'method': // Custom Function
|
||||
$method = $attributes['field']; // prevents table alias in method names. ie. u.my_method.
|
||||
$_value = $value;
|
||||
|
||||
if($attributes['data'] == 'array') // FIXME @SecretR - please move this to where it should be.
|
||||
{
|
||||
$value = e107::unserialize($value); // (saved as array, return it as an array)
|
||||
}
|
||||
|
||||
$value = call_user_func_array(array($this, $method), array($value, 'read', $parms));
|
||||
|
||||
// print_a($attributes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user