Fix minore

This commit is contained in:
valentina 2024-09-10 12:40:20 +02:00
parent 6a2420351a
commit e2fb7bf1da
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
include_once __DIR__.'/../../../core.php';
$resource = ($resource ? $resource : $_GET['op']);
$resource = ($resource ?: $_GET['op']);
switch ($resource) {
// Elenco e-mail

View File

@ -31,9 +31,9 @@ if (!empty($id_record)) {
try {
$fattura_pa = FatturaElettronica::manage($record['name'] ?? '');
$anagrafica = $fattura_pa->findAnagrafica();
} catch (UnexpectedValueException $e) {
} catch (UnexpectedValueException) {
$imported = true;
} catch (Exception $e) {
} catch (Exception) {
$error = true;
}

View File

@ -236,7 +236,7 @@ class FatturaElettronica
*/
public function saveAnagrafica($type = 'Fornitore')
{
$anagrafica = $this->findAnagrafica($type);
$anagrafica = $this->findAnagrafica();
if (!empty($anagrafica)) {
return $anagrafica;