mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
- 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:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user