Error management
This commit is contained in:
parent
fd249c60da
commit
4380367923
@ -205,8 +205,16 @@ function limitChars(textarea, limit, infodiv)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
$classname=ucfirst($classfile);
|
$classname=ucfirst($classfile);
|
||||||
$sms = new $classname($this->db);
|
if (class_exists($classname))
|
||||||
$resultsender = $sms->SmsSenderList();
|
{
|
||||||
|
$sms = new $classname($this->db);
|
||||||
|
$resultsender = $sms->SmsSenderList();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$sms = new stdClass();
|
||||||
|
$sms->error='The SMS manager '.$classfile.' defined into SMS setup MAIN_SMS_SENDMODE is not found';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch(Exception $e)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user