2
0
forked from Wavyzz/dolibarr

qodana fix 3 : missing returns (#25332)

* qodana fix 3 : missing returns

* removing a duplicated line
This commit is contained in:
onhairech
2023-07-12 16:32:50 +02:00
committed by GitHub
parent e8ad953e12
commit e5e9f914e5
13 changed files with 119 additions and 95 deletions

View File

@@ -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);