Index: path_redirect.admin.inc =================================================================== --- path_redirect.admin.inc (revision 19797) +++ path_redirect.admin.inc (working copy) @@ -250,7 +250,7 @@ function path_redirect_delete_confirm_submit($form, &$form_state) { if ($form_state['values']['confirm']) { - path_redirect_delete($form_state['values']['rid']); + path_redirect_delete($form_state['values']['rid'], NULL, TRUE); drupal_set_message(t('The redirect has been deleted.')); } } Index: path_redirect.module =================================================================== --- path_redirect.module (revision 19797) +++ path_redirect.module (working copy) @@ -307,8 +307,8 @@ /** * Delete a specific URL redirect from the database. */ -function path_redirect_delete($where = array(), $args = array()) { - if (is_numeric($where)) { +function path_redirect_delete($where = array(), $args = array(), $is_rid = FALSE) { + if (is_numeric($where) && $is_rid) { $where = array('rid' => $where); }