This commit is contained in:
tianshujie
2023-11-06 15:17:28 +08:00
parent 6d0462def8
commit 43cf77629f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1463,7 +1463,7 @@ class project extends control
/* If no product is selected, prompt error. */
$postProducts = $this->post->products;
$postOtherProduct = $this->post->otherProducts;
if(!isset($postProducts) && !isset($postOtherProduct))
if(empty($postProducts) && empty($postOtherProduct))
{
return $this->send(array('result' => 'fail', 'message' => $this->lang->project->errorNoProducts));
}
@@ -191,6 +191,7 @@ form
h::hr()
),
formHidden('post', 'post'),
set::actions(array('submit'))
);