* [bug#55187] fix bug.

This commit is contained in:
qixinzhi
2024-09-11 17:16:12 +08:00
committed by 宋辰轩
parent 109f538e92
commit 0774f95de0
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ class pivotModel extends model
if(!empty($pivot->name))
{
$pivotNames = json_decode($pivot->name, true);
$pivot->name = zget($pivotNames, $this->app->getClientLang(), '') ? : reset(array_filter($pivotNames));
$pivot->name = zget($pivotNames, $this->app->getClientLang(), '') ?? reset(array_filter($pivotNames));
$pivot->names = $pivotNames;
}