fix bug config

This commit is contained in:
2020-12-14 14:18:50 +07:00
parent 237f658e16
commit 8530a33542
3 changed files with 12 additions and 8 deletions

View File

@@ -76,10 +76,11 @@ class CaptureLogsGrid {
$staff = $model->listManagement;
if ($staff) {
$images = json_decode($staff->image, true);
return Html::img("/data/uploads/face/" . $images[0]['url'], [
"class" => "img-thumbnail",
"style" => "width: 150px;height:150px;"
]);
if (count($images) > 0)
return Html::img("/data/uploads/face/" . $images[0]['url'], [
"class" => "img-thumbnail",
"style" => "width: 150px;height:150px;"
]);
}
return "";
};