Commit cc0980ec authored by Dries's avatar Dries

- Bugfix: moved the delete query down.  Patch by Marco.
parent e0357857
......@@ -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 .= "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n";
......
......@@ -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 .= "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment