From b4b697f0f1ed24976cb7f678cef414d9743dafff Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 2 Jun 2002 20:47:38 +0000 Subject: [PATCH] some minor changes to be compatible with the gtk ui --- etemplate/inc/class.db_tools.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.db_tools.inc.php b/etemplate/inc/class.db_tools.inc.php index db25aa3413..c5da432e95 100644 --- a/etemplate/inc/class.db_tools.inc.php +++ b/etemplate/inc/class.db_tools.inc.php @@ -144,7 +144,7 @@ { $this->data[$posted_table] = $this->content2table($content); } - if (isset($content['write_tables'])) + if ($content['write_tables']) { if ($this->needs_save('',$this->app,$this->table,$this->data[$posted_table])) { @@ -152,7 +152,7 @@ } $msg .= $this->messages[$this->write($this->app,$this->data) ? 'writen' : 'error_writing']; } - elseif (isset($content['delete'])) + elseif ($content['delete']) { list($col) = each($content['delete']); @@ -162,7 +162,7 @@ unset($this->data[$posted_table]['fd'][$key]); $this->changes[$posted_table][$key] = '**deleted**'; } - elseif (isset($content['add_column'])) + elseif ($content['add_column']) { $this->data[$posted_table]['fd'][''] = array(); }