From 41f36193c4a7052a65fea037c4a27d5b8360faf1 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 23 May 2008 10:56:18 -0400
Subject: [PATCH] Fixed spacing at the end of buttons in safari.

---
 interface/lib/classes/listform_actions.inc.php |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php
index cfe880c..c67c7fa 100644
--- a/interface/lib/classes/listform_actions.inc.php
+++ b/interface/lib/classes/listform_actions.inc.php
@@ -40,17 +40,14 @@
 	private $id;
 	private $idx_key;
 	private $DataRowColor;
-	private $SQLExtWhere = '';
-	private $SQLOrderBy = '';
+	public  $SQLExtWhere = '';
+	public  $SQLOrderBy = '';
 	
 	public function onLoad()
     {
 		global $app, $conf, $list_def_file;
 		
-        //TODO: this is_object checking should be in the $appobject - pedro notes
-		if(!@is_object($app->tpl)) $app->uses('tpl');
-		if(!@is_object($app->listform)) $app->uses('listform');
-		if(!@is_object($app->tform)) $app->uses('tform');
+		$app->uses('tpl,listform,tform');
 		
 		//* Clear session variable that is used when lists are embedded with the listview plugin
 		$_SESSION['s']['form']['return_to'] = '';
@@ -100,7 +97,7 @@
 		foreach($app->listform->listDef['item'] as $field) {
 			$key = $field['field'];
 			if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
-				$rec[$key] = $field['value'][$rec[$key]];
+				$rec[$key] = @$field['value'][$rec[$key]];
 			}
 		}
 		

--
Gitblit v1.9.1