Skip to content

Commit

Permalink
Added path alias checks to avoid fatal errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jan 7, 2024
1 parent 35a658f commit 41f22f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quant.module
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ function quant_modules_uninstalled($modules) {
* The path alias.
*/
function quant_path_alias_presave(EntityInterface $pathAlias) {
if (!$pathAlias || !$pathAlias->original) {
return;
}

// Original path alias.
$original_path = $pathAlias->original->get('path')->value;
$original_alias = $pathAlias->original->get('alias')->value;
Expand Down

0 comments on commit 41f22f4

Please sign in to comment.