mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-10-13 20:24:34 +02:00
Fix(CI): phpstan (#109)
This commit is contained in:
11
hook.php
11
hook.php
@@ -624,12 +624,11 @@ function plugin_example_uninstall()
|
||||
ProfileRight::deleteProfileRights([Example::$rightname]);
|
||||
|
||||
$notif = new Notification();
|
||||
$options = ['itemtype' => 'Ticket',
|
||||
'event' => 'plugin_example',
|
||||
'FIELDS' => 'id'];
|
||||
foreach ($DB->request('glpi_notifications', $options) as $data) {
|
||||
$notif->delete($data);
|
||||
}
|
||||
$notif->deleteByCriteria([
|
||||
'itemtype' => 'Ticket',
|
||||
'event' => 'plugin_example',
|
||||
'FIELDS' => 'id',
|
||||
]);
|
||||
// Old version tables
|
||||
if ($DB->tableExists('glpi_dropdown_plugin_example')) {
|
||||
$query = 'DROP TABLE `glpi_dropdown_plugin_example`';
|
||||
|
Reference in New Issue
Block a user