Closed MichaelKubovic closed 10 years ago
Agree, unless adding this line, there are warnings because of the original field array is a string and not an array, so i've put this on line 100, just before "if (is_array($locale)) {" :
$row[$model->alias][$aliasField] = array();
So the field is replaced by the translation array
@MichaelKubovic I'm starting work on a new version. Please in Milestone 2.5 announce everything that is needed to be added in the new version.
Hello, I've noticed that isset($string) (expected array) returns always true.
Line: 102
In my case $row[$model->alias][$aliasField] returns string.
from php.net
Output of the above example in PHP 5.3: bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
I suggest to add this line before the condition to ensure that isset is checking an array.