* fix trying to get model during ai mini program import.
This commit is contained in:
+1
-1
@@ -1367,7 +1367,7 @@ class aiModel extends model
|
||||
if($data->published === '1') $data->publishedDate = helper::now();
|
||||
$data->builtIn = '0';
|
||||
|
||||
$data->model = $data->model == 'default' ? 0 : $data->model;
|
||||
$data->model = (empty($data->model) || $data->model == 'default') ? 0 : $data->model;
|
||||
|
||||
if(!empty($data->iconName) && !empty($data->iconTheme))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user