summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-07-26 08:49:11 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-07-26 08:49:11 +0000
commit0d86b33282d1d73d8c084cf5a6ec92de8b8260cc (patch)
treed5095535a3f74f654d3b2aa671866be99d7b3738 /modules
parent55f2a1cfd260c4085167e538fea75ccb4345e9a1 (diff)
downloadbrdo-0d86b33282d1d73d8c084cf5a6ec92de8b8260cc.tar.gz
brdo-0d86b33282d1d73d8c084cf5a6ec92de8b8260cc.tar.bz2
#161142 by dvessel: kill notice on profile page when there are less then three components in the path
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));