summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/profile/profile.module2
1 files changed, 1 insertions, 1 deletions
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));