pluginsGLPI / geninventorynumber

Inventorynumber generation
GNU General Public License v3.0
8 stars 14 forks source link

Fix undefined index `is_active` #69

Closed AdrienClairembault closed 6 months ago

AdrienClairembault commented 1 year ago

Fix the following warnings when updating the plugin, as #67 will trigger this code without these two required keys.

Traitement du plugin « geninventorynumber »...
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
PHP Notice:  Undefined index: is_active in /var/www/html/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 201
Le plugin « geninventorynumber » a été installé et peut être activé.
Traitement du plugin « geninventorynumber »...
Le plugin « geninventorynumber » a été activé.