From aa150015a52cfdf30949b6b19fdd43b6550ce067 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 16 Dec 2008 17:04:39 -0500
Subject: [PATCH] Improved Client templates.

---
 interface/web/client/tools.inc.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/web/client/tools.inc.php b/interface/web/client/tools.inc.php
index 9cbf8eb..d66afc1 100644
--- a/interface/web/client/tools.inc.php
+++ b/interface/web/client/tools.inc.php
@@ -28,7 +28,7 @@
 */
 
 function applyClientTemplates($clientId){
-	global $app;
+	global $app,$page;
 	/*
 	 * Get the master-template for the client
 	 */
@@ -44,7 +44,7 @@
 		$sql = "SELECT * FROM client_template WHERE template_id = " . intval($masterTemplateId);
 		$limits = $app->db->queryOneRecord($sql);
 	} else {
-		$limits = $this->dataRecord;
+		$limits = $page->dataRecord;
 	}
 
 	/*

--
Gitblit v1.9.1