From f3e6c510cdfee3ef9c6bee0a7e2e35c9c0be0fe4 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 30 Oct 2012 06:23:01 -0400
Subject: [PATCH] Fixed: FS#2499 - "FastCGI max. Requests" cannot be set to zero (0) in System -> Server Config -> FastCGI tab
---
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