Fix creazione config

This commit is contained in:
Pek5892 2024-02-06 16:27:00 +01:00
parent e13ad96b65
commit 6722e59de4
1 changed files with 6 additions and 3 deletions

View File

@ -21,14 +21,17 @@ $skip_permissions = true;
include_once __DIR__.'/core.php';
use Carbon\Carbon;
use Illuminate\Database\QueryException;
$op = filter('op');
$microsoft = null;
try {
$microsoft = $dbo->selectOne('zz_oauth2', '*', ['nome' => 'Microsoft', 'enabled' => 1, 'is_login' => 1]);
} catch (Exception $e) {
if ($dbo->isConnected()) {
try {
$microsoft = $dbo->selectOne('zz_oauth2', '*', ['nome' => 'Microsoft', 'enabled' => 1, 'is_login' => 1]);
} catch ( QueryException $e) {
}
}
// LOGIN