A case of !empty being better than isset; right now it's calling delete for src = 'node/nid 'on insert of that nodes w/o paths (since path is set to an empty string, not null).
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_path_nodeapi_insert.patch | 535 bytes | hefox |
Comments
Comment #1
areke commentedThe path is a string, so there's a possibility an empty string could be passed into the function, which would mean the alias could have been set already. Since !empty will check if the string is set AND has an actual value, it's better to use that. The patch applies cleanly, so it looks good. Thank you!