forked from Wavyzz/dolibarr
qodana fix 3 : missing returns (#25332)
* qodana fix 3 : missing returns * removing a duplicated line
This commit is contained in:
@@ -82,7 +82,7 @@ class CSMSFile
|
||||
// If ending method not defined
|
||||
if (empty($conf->global->MAIN_SMS_SENDMODE)) {
|
||||
$this->error = 'No SMS Engine defined';
|
||||
return -1;
|
||||
throw new Exception('No SMS Engine defined');
|
||||
}
|
||||
|
||||
dol_syslog("CSMSFile::CSMSFile: MAIN_SMS_SENDMODE=".$conf->global->MAIN_SMS_SENDMODE." charset=".$conf->file->character_set_client." from=".$from.", to=".$to.", msg length=".strlen($msg), LOG_DEBUG);
|
||||
|
||||
Reference in New Issue
Block a user