Commit 3e76e2f1 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Using empty() instead of is_null (Bug 1095934)"

parents 1cdc0486 2f41bf3c
......@@ -2339,7 +2339,7 @@ function group_get_new_homepage_urlid($desired) {
* @return string
*/
function group_homepage_url($group, $full=true, $useid=false) {
if (!$useid && !is_null($group->urlid) && get_config('cleanurls')) {
if (!$useid && !empty($group->urlid) && get_config('cleanurls')) {
$url = get_config('cleanurlgroupdefault') . '/' . $group->urlid;
}
else if ($group->id) {
......
Supports Markdown
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