* Fix error for Passing null to parameter of type string is deprecated.

This commit is contained in:
wangyidong
2023-08-31 13:58:37 +08:00
parent 3b53903df4
commit a1d2e39356
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ class mailModel extends model
if($this->config->mail->mta == 'smtp') $this->mta->smtpClose();
/* save errors. */
if($this->isError()) $this->app->saveError('E_MAIL', join(' ', $this->errors), __FILE__, __LINE__, true);
if($this->isError()) $this->app->saveError(E_WARNING, join(' ', $this->errors), __FILE__, __LINE__);
$message = ob_get_contents();
ob_end_clean();
+1 -1
View File
@@ -299,7 +299,7 @@ class story extends control
$product = $this->product->getById(($productID and array_key_exists($productID, $products)) ? $productID : key($products));
$productBranches = $product->type != 'normal' ? $this->loadModel('execution')->getBranchByProduct($productID, $objectID, 'noclosed|withMain') : array();
$branches = isset($productBranches[$productID]) ? $productBranches[$productID] : array();
$branch = key($branches);
$branch = (int)key($branches);
}
else
{