mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-04 21:59:27 +00:00
d3bc72539a
- Changes in the logic of sending email
31 lines
720 B
PHP
31 lines
720 B
PHP
<?php
|
|
|
|
/** ---------------------------------------------------------------
|
|
* General Error
|
|
*
|
|
* @return array
|
|
*/
|
|
function success($retval, $message = null)
|
|
{
|
|
$return = new stdClass();
|
|
$return->error = EXIT_SUCCESS;
|
|
$return->fhcCode = $message;
|
|
if (!is_null($message)) $return->msg = lang('fhc_' . $message);
|
|
$return->retval = $retval;
|
|
return $return;
|
|
}
|
|
|
|
/** ---------------------------------------------------------------
|
|
* General Error
|
|
*
|
|
* @return array
|
|
*/
|
|
function error($retval = '', $message = null)
|
|
{
|
|
$return = new stdClass();
|
|
$return->error = EXIT_ERROR;
|
|
$return->fhcCode = $message;
|
|
if (!is_null($message)) $return->msg = lang('fhc_' . $message);
|
|
$return->retval = $retval;
|
|
return $return;
|
|
} |