This commit is contained in:
2020-11-12 15:37:59 +08:00
parent 223a0850db
commit d88d25a271
3 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ class ' . $managerName . ' extends ActiveRecord
if (empty($data)) return '';
$string = [];
foreach ($data as $key => $_val) {
if (strpos($key, ',') !== false) {
if (is_string($key) && strpos($key, ',') !== false) {
$key = '[' . $key . ']';
}
if (count($_val) == 1) {