From c6faf26a3cc3aba065018340e1671d25031a50e5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 19 Aug 2007 08:27:26 -0400
Subject: [PATCH] Fixed a strict error in listform.inc.php Fixed the uses function in app.inc.php

---
 interface/lib/app.inc.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 353297a..7a382a4 100644
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -67,9 +67,10 @@
 
 	public function uses($classes)
     {	
-		$cl = explode(', ',$classes);
+		$cl = explode(',',$classes);
 		if(is_array($cl)) {
 			foreach($cl as $classname){
+				$classname = trim($classname);
 				if(!array_key_exists($classname, $this->_loaded_classes)){
 					require_once($this->_conf['classpath'] . '/'.$classname.'.inc.php');
 					$this->$classname = new $classname();
@@ -84,6 +85,7 @@
 		$fl = explode(',', $files);
 		if(is_array($fl)) {
 			foreach($fl as $file){
+				$file = trim($file);
 				include_once($this->_conf['classpath'] . '/'.$file.'.inc.php');
 			}
 		}

--
Gitblit v1.9.1