Skip to content
Snippets Groups Projects
Commit 1236ee9c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #863736 by David_Rothstein: unnecessary isset() check in path_save().

parent 239c6691
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -395,7 +395,7 @@ function path_save(&$path) {
$status = drupal_write_record('url_alias', $path, (!empty($path['pid']) ? 'pid' : NULL));
// Verify that a record was written.
if (isset($status) && $status) {
if ($status) {
if ($status === SAVED_NEW) {
module_invoke_all('path_insert', $path);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment