* Fix error for Passing null to parameter of type string is deprecated.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user