mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
Removed _parseData workaround
This commit is contained in:
@@ -11,35 +11,4 @@ class APIv1_Controller extends REST_Controller
|
||||
// Loads return messages
|
||||
$this->load->helper('Message');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param type $data
|
||||
* @return typeparses empty string to NULL
|
||||
*/
|
||||
protected function _parseData($data)
|
||||
{
|
||||
if(is_array($data))
|
||||
{
|
||||
foreach($data as $key=>$value)
|
||||
{
|
||||
if($value === '')
|
||||
{
|
||||
$data[$key] = NULL;
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
elseif(is_object($data))
|
||||
{
|
||||
//TODO
|
||||
}
|
||||
else
|
||||
{
|
||||
if($data == '')
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user