From a01f0ec2151f4213d5a17b138909dd79a23ae4d2 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 24 Nov 2005 10:04:27 -0500
Subject: [PATCH] added return to infos for lists
---
interface/lib/classes/tform.inc.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php
index a58200c..a2609fb 100644
--- a/interface/lib/classes/tform.inc.php
+++ b/interface/lib/classes/tform.inc.php
@@ -435,7 +435,7 @@
break;
default:
- $new_record[$key] = htmlspecialchars($field['value']);
+ $new_record[$key] = htmlspecialchars($field['default']);
}
}
@@ -600,6 +600,9 @@
global $app;
+ // If there are no data records on the tab, return empty sql string
+ if(count($this->formDef['tabs'][$tab]['fields']) == 0) return '';
+
// checking permissions
if($this->formDef['auth'] == 'yes') {
if($action == "INSERT") {
@@ -653,6 +656,7 @@
}
}
+
// F�ge Backticks nur bei unvollst�ndigen Tabellennamen ein
if(stristr($this->formDef['db_table'],'.')) {
$escape = '';
--
Gitblit v1.9.1