mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix minore
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
|
||||
include_once __DIR__.'/../../../core.php';
|
||||
|
||||
$resource = ($resource ? $resource : $_GET['op']);
|
||||
$resource = ($resource ?: $_GET['op']);
|
||||
|
||||
switch ($resource) {
|
||||
// Elenco e-mail
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -236,7 +236,7 @@ class FatturaElettronica
|
||||
*/
|
||||
public function saveAnagrafica($type = 'Fornitore')
|
||||
{
|
||||
$anagrafica = $this->findAnagrafica($type);
|
||||
$anagrafica = $this->findAnagrafica();
|
||||
|
||||
if (!empty($anagrafica)) {
|
||||
return $anagrafica;
|
||||
|
Reference in New Issue
Block a user