From ce6dcf483febeb655958e0afae0eb320bed05bea Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 10 Mar 2009 11:54:51 -0400
Subject: [PATCH] Fixed bugs in opensuse config and docs Fixed a bug that prevented the modification of website settings of a site that the user created.

---
 interface/web/sites/database_edit.php |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/interface/web/sites/database_edit.php b/interface/web/sites/database_edit.php
index 485fb80..377f321 100644
--- a/interface/web/sites/database_edit.php
+++ b/interface/web/sites/database_edit.php
@@ -173,6 +173,13 @@
 			$app->tpl->setVar("database_name_prefix", $dbname_prefix);
 			$app->tpl->setVar("database_user_prefix", $dbuser_prefix);
 		}
+		
+		if($this->id > 0) {
+			//* we are editing a existing record
+			$app->tpl->setVar("edit_disabled", 'disabled="disabled"');
+		} else {
+			$app->tpl->setVar("edit_disabled", '');
+		}
 
 		parent::onShowEnd();
 	}

--
Gitblit v1.9.1