bernd commited on 2007-08-16 20:08:27
Zeige 2 geänderte Dateien mit 6 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@634 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -31,7 +31,8 @@ abstract class KeksData |
31 | 31 |
$this->parse($this->raw_data); |
32 | 32 |
} |
33 | 33 |
elseif (array_key_exists($key, $this->data)) |
34 |
- return false; |
|
34 |
+ $this->data[$key] = $value; |
|
35 |
+ // return false; |
|
35 | 36 |
elseif (isset($this->$key)) |
36 | 37 |
$this->$key = $value; |
37 | 38 |
else |
... | ... |
@@ -46,6 +47,8 @@ abstract class KeksData |
46 | 47 |
{ |
47 | 48 |
$fields[$f->Field] = $f->Default; |
48 | 49 |
} |
50 |
+ $this->raw_data = $fields; |
|
51 |
+ $this->raw_data['id'] = NULL; |
|
49 | 52 |
$this->data = $fields; |
50 | 53 |
$this->data['id'] = NULL; |
51 | 54 |
} |