From da843bf45f6c0edfbc246efaacc8a329b2ce7a8b Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 27 Aug 2012 10:54:16 -0400
Subject: [PATCH] Fixed: FS#2245 - Unable to move from the state "Installation Failed" of an app
---
server/server.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/server/server.php b/server/server.php
index 3683f19..54a4b5b 100644
--- a/server/server.php
+++ b/server/server.php
@@ -42,7 +42,9 @@
*/
if ($app->dbmaster->connect_error == NULL) {
$server_db_record = $app->dbmaster->queryOneRecord("SELECT * FROM server WHERE server_id = " . $conf['server_id']);
-
+
+ if(!is_array($server_db_record)) die('Unable to load the server configuration from database.');
+
$conf['last_datalog_id'] = (int) $server_db_record['updated'];
$conf['mirror_server_id'] = (int) $server_db_record['mirror_server_id'];
@@ -146,7 +148,7 @@
unset($tmp_rec);
//** Load required base-classes
- $app->uses('modules,plugins,file,services');
+ $app->uses('modules,plugins,file,services,system');
//** Load the modules that are in the mods-enabled folder
$app->modules->loadModules('all');
//** Load the plugins that are in the plugins-enabled folder
--
Gitblit v1.9.1