some minor changes to be compatible with the gtk ui

This commit is contained in:
Ralf Becker 2002-06-02 20:47:38 +00:00
parent b520fa4655
commit b4b697f0f1

View File

@ -144,7 +144,7 @@
{ {
$this->data[$posted_table] = $this->content2table($content); $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])) 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']; $msg .= $this->messages[$this->write($this->app,$this->data) ? 'writen' : 'error_writing'];
} }
elseif (isset($content['delete'])) elseif ($content['delete'])
{ {
list($col) = each($content['delete']); list($col) = each($content['delete']);
@ -162,7 +162,7 @@
unset($this->data[$posted_table]['fd'][$key]); unset($this->data[$posted_table]['fd'][$key]);
$this->changes[$posted_table][$key] = '**deleted**'; $this->changes[$posted_table][$key] = '**deleted**';
} }
elseif (isset($content['add_column'])) elseif ($content['add_column'])
{ {
$this->data[$posted_table]['fd'][''] = array(); $this->data[$posted_table]['fd'][''] = array();
} }