From 9e47968a5916e6f464be0b0479cedf62b2dc2ac2 Mon Sep 17 00:00:00 2001 From: cornernote Date: Wed, 12 Aug 2015 16:01:23 +0930 Subject: [PATCH] try another fix --- src/models/Package.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Package.php b/src/models/Package.php index 47437f1..5807fbe 100644 --- a/src/models/Package.php +++ b/src/models/Package.php @@ -173,7 +173,7 @@ class Package extends ActiveRecord $oldAttributes = $this->oldAttributes; if (!$oldAttributes) { foreach ($this->attributes as $name => $value) { - if (isset($names[$name])) { + if (!empty($names[$name])) { $attributes[$name] = $value; } }