From 0a28a5fc6bdf3760743aa2bed674400819270f99 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 24 Nov 2005 09:08:48 -0500 Subject: [PATCH] Bugfix in tform --- 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