pluizia codice
This commit is contained in:
+4
-2
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* -------------------------------------------------------------------------
|
||||
* UrBackup plugin for GLPI
|
||||
@@ -327,7 +329,7 @@ class Server extends CommonDBTM
|
||||
|
||||
$this->initForm($ID, $options);
|
||||
$this->showFormHeader($options);
|
||||
$this->showFormFields($ID);
|
||||
$this->showFormFields($ID > 0 ? (int) $ID : null);
|
||||
$this->showFormButtons($options);
|
||||
|
||||
return true;
|
||||
@@ -1339,7 +1341,7 @@ JAVASCRIPT;
|
||||
return $cache[$id];
|
||||
}
|
||||
|
||||
private static function getAssetIp(string $itemtype, int $items_id): string
|
||||
public static function getAssetIp(string $itemtype, int $items_id): string
|
||||
{
|
||||
global $DB;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user