@@ -17,8 +17,7 @@ |
||
| 17 | 17 | foreach ($update as $key=>$value) { |
| 18 | 18 | if (isset($subs[$key])) { |
| 19 | 19 | $this->$key = new ($subs[$key]) ($value); |
| 20 | - } |
|
| 21 | - else { |
|
| 20 | + } else { |
|
| 22 | 21 | $this->$key = $value; |
| 23 | 22 | if (ucfirst($key) === basename(get_class($this)).'_id') { |
| 24 | 23 | $this->{'id'} = $value; |