fix: dsn condition

This commit is contained in:
loks0n
2023-11-08 17:11:36 +00:00
parent 717f62fdf0
commit d99225e366
+2 -2
View File
@@ -34,8 +34,8 @@ class Messaging extends Action
public function __construct()
{
$provider = App::getEnv('_APP_SMS_PROVIDER', '');
if (!empty($this->provider)) {
$this->provider = new DSN($provider);
if (!empty($provider)) {
$this->dsn = new DSN($provider);
}
$geoProviders = App::getEnv('_APP_GEOSMS_PROVIDERS', '');