From 8c7086ac2143ebe5d4af7081486b3346e56c049c Mon Sep 17 00:00:00 2001 From: Nelson Zamith Date: Fri, 23 Oct 2015 11:43:32 +0200 Subject: [PATCH] DROP TABLE statement typo didn't matched the table created in install hook --- hook.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hook.php b/hook.php index e438610..66c68f8 100644 --- a/hook.php +++ b/hook.php @@ -586,9 +586,9 @@ function plugin_example_uninstall() { $DB->query($query) or die("error deleting glpi_plugin_example"); } // Current version tables - if (TableExists("glpi_plugin_example_example")) { - $query = "DROP TABLE `glpi_plugin_example_example`"; - $DB->query($query) or die("error deleting glpi_plugin_example_example"); + if (TableExists("glpi_plugin_example_examples")) { + $query = "DROP TABLE `glpi_plugin_example_examples`"; + $DB->query($query) or die("error deleting glpi_plugin_example_examples"); } if (TableExists("glpi_plugin_example_dropdowns")) { $query = "DROP TABLE `glpi_plugin_example_dropdowns`;"; @@ -672,4 +672,4 @@ function plugin_example_Status($param) { echo "\n"; return $param; } -?> \ No newline at end of file +?>