From cc0980ec6b51713c654451a86b2608449af86cc9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Aug 2002 17:53:44 +0000 Subject: - Bugfix: moved the delete query down. Patch by Marco. --- modules/system/system.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 1e743aa7a..d071df992 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -150,7 +150,6 @@ function system_modules() { while ($module = db_fetch_object($result)) { $status[$module->name] = $module->status; } - db_query("DELETE FROM system WHERE type = 'module'"); if ($handle = @opendir("modules")) { $modules = array(); @@ -165,6 +164,8 @@ function system_modules() { asort($modules); } + db_query("DELETE FROM system WHERE type = 'module'"); + $required = array("user", "system", "watchdog"); $output .= "\n"; -- cgit v1.2.3