- Added new model CL/Messages_model.php

- Moved logic from controllers system/Messages and ViewMessage to CL/Messages_model
- Better code
- MessageLib and PersonLogLib methods do not use anymore show_error and return success/error object
- helpers/hlp_message_helper: hasData function changed
This commit is contained in:
Paolo
2019-02-25 15:23:31 +01:00
parent 0645095af0
commit 2d7cc09d02
8 changed files with 320 additions and 262 deletions
@@ -722,8 +722,14 @@ class InfoCenter extends Auth_Controller
$person_id = $this->input->post('person_id');
$result = $this->personloglib->unPark($person_id);
$this->output->set_content_type('application/json')->set_output(json_encode($result));
if (isError($result))
{
$this->outputJsonError($result);
}
else
{
$this->output->set_content_type('application/json')->set_output(json_encode(getData($result)));
}
}
/**