Skip to content
Snippets Groups Projects
Commit 815162db authored by Raphael's avatar Raphael
Browse files

Unknown issue by wdki: Fix undefined index on /admin page

parent a734f220
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,8 @@ function rename_admin_paths_url_inbound_alter(&$path, $original_path, $path_lang
$rename_admin_path_value = variable_get('rename_admin_path_value', 'backend');
// Get back default admin path
if (preg_match('|^' . urlencode($rename_admin_path_value) . '$|i', $path, $matches)) {
$path = 'admin'. $matches[1];
if (preg_match('|^' . urlencode($rename_admin_path_value) . '$|i', $path)) {
$path = 'admin';
}
// Get back default admin/* path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment