Commit 295d9965 authored by salvamomo's avatar salvamomo

fixing bug on user_homepage_get_homepage that causes the function to return...

fixing bug on user_homepage_get_homepage that causes the function to return always the first homepage found, regardless of the uid passed. In other words, forgot to add the db_select condition...
parent 0dcabbd5
......@@ -179,6 +179,7 @@ function user_homepage_get_homepage($user_id = '') {
$query = db_select('user_homepage', 'uh')
->fields('uh', array('path'))
->condition('uh.uid', $user_id)
->execute();
$homepage_path = $query->fetchField();
$decoded_path = rawurldecode($homepage_path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment