- Patch #863736 by David_Rothstein: unnecessary isset() check in path_save().
parent
239c66915f
commit
1236ee9c75
|
@ -395,7 +395,7 @@ function path_save(&$path) {
|
||||||
$status = drupal_write_record('url_alias', $path, (!empty($path['pid']) ? 'pid' : NULL));
|
$status = drupal_write_record('url_alias', $path, (!empty($path['pid']) ? 'pid' : NULL));
|
||||||
|
|
||||||
// Verify that a record was written.
|
// Verify that a record was written.
|
||||||
if (isset($status) && $status) {
|
if ($status) {
|
||||||
if ($status === SAVED_NEW) {
|
if ($status === SAVED_NEW) {
|
||||||
module_invoke_all('path_insert', $path);
|
module_invoke_all('path_insert', $path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue