Removed _parseData workaround

This commit is contained in:
bison-paolo
2016-10-19 14:49:54 +02:00
parent 6f547419f1
commit 39b4c8057d
7 changed files with 32 additions and 62 deletions
-31
View File
@@ -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;
}
}
}
}