try another fix

This commit is contained in:
cornernote 2015-08-12 16:01:23 +09:30
parent ea71d4ae1b
commit 9e47968a59

View File

@ -173,7 +173,7 @@ class Package extends ActiveRecord
$oldAttributes = $this->oldAttributes; $oldAttributes = $this->oldAttributes;
if (!$oldAttributes) { if (!$oldAttributes) {
foreach ($this->attributes as $name => $value) { foreach ($this->attributes as $name => $value) {
if (isset($names[$name])) { if (!empty($names[$name])) {
$attributes[$name] = $value; $attributes[$name] = $value;
} }
} }