From 0d86b33282d1d73d8c084cf5a6ec92de8b8260cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 26 Jul 2007 08:49:11 +0000 Subject: #161142 by dvessel: kill notice on profile page when there are less then three components in the path --- modules/profile/profile.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/profile/profile.module b/modules/profile/profile.module index a846d35b3..54376d89b 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -452,7 +452,7 @@ function profile_admin_overview() { */ function profile_browse() { $name = arg(1); - list(, , $value) = explode('/', $_GET['q'], 3); + list(, , $value) = array_pad(explode('/', $_GET['q'], 3), 3, ''); $field = db_fetch_object(db_query("SELECT DISTINCT(fid), type, title, page, visibility FROM {profile_fields} WHERE name = '%s'", $name)); -- cgit v1.2.3