Browse Source

Fixed code style

tags/2.0.16
Dmytro Naumenko 6 years ago committed by GitHub
parent
commit
698e45ac1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/db/ActiveRelationTrait.php

2
framework/db/ActiveRelationTrait.php

@ -525,7 +525,7 @@ trait ActiveRelationTrait
if (($value = $model[$attribute]) !== null) {
if (is_array($value)) {
$values = array_merge($values, $value);
} elseif($value instanceof ArrayExpression && $value->getDimension() === 1) {
} elseif ($value instanceof ArrayExpression && $value->getDimension() === 1) {
$values = array_merge($values, $value->getValue());
} else {
$values[] = $value;

Loading…
Cancel
Save