@@ -236,13 +236,15 @@ |
||
236 | 236 | $oldAttributes = $this->cleanAttributes($this->getOldAttributes()); |
237 | 237 | |
238 | 238 | // ensure to handle serialized attributes properly |
239 | - foreach($newAttributes as $key => $value) |
|
240 | - if(is_array($newAttributes[$key])) |
|
239 | + foreach($newAttributes as $key => $value) { |
|
240 | + if(is_array($newAttributes[$key])) |
|
241 | 241 | $newAttributes[$key] = implode(',', $newAttributes[$key]); |
242 | + } |
|
242 | 243 | |
243 | - foreach($oldAttributes as $key => $value) |
|
244 | - if(is_array($oldAttributes[$key])) |
|
244 | + foreach($oldAttributes as $key => $value) { |
|
245 | + if(is_array($oldAttributes[$key])) |
|
245 | 246 | $oldAttributes[$key] = implode(',', $oldAttributes[$key]); |
247 | + } |
|
246 | 248 | |
247 | 249 | // If no difference then get out of here |
248 | 250 | if (count(array_diff_assoc($newAttributes, $oldAttributes)) <= 0) { |