1
0
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:
Cameron 2015-02-14 12:22:07 -08:00
parent 4c1cbab300
commit 6e598c9430

View File

@ -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);