toi uu xu ly dong bo du lieu tu may chu

This commit is contained in:
2020-12-29 13:33:29 +07:00
parent ddcf67ba9c
commit c9d0c24218
5 changed files with 78 additions and 42 deletions

View File

@@ -82,7 +82,7 @@ class ControlLogsController extends Controller {
return ["status" => false, "text" => "Mỗi đối tượng chỉ nhận tối đa " . \Yii::$app->params['maxPicture'] . " hình ảnh mẫu"];
$add = true;
foreach ($images as $key => $value) {
if ($value['urlOld'] === $url)
if (isset($value['urlOld']) && $value['urlOld'] === $url)
$add = false;
}
if ($add) {