mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
Add getter for json and list data
This commit is contained in:
parent
a4f0d7c13b
commit
362631a6ec
|
|
@ -214,11 +214,15 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
|
|
||||||
$list = \explode($delim, $this->data[$key]);
|
$list = \explode($delim, $this->data[$key]);
|
||||||
|
|
||||||
|
if ($list === false) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($list as $i => $e) {
|
foreach ($list as $i => $e) {
|
||||||
$list[$i] = \trim($e);
|
$list[$i] = \trim($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $list === false ? [] : $list;
|
return $list;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user