Commit 22ec44c9 authored by Mike Carper's avatar Mike Carper

#879942 by jmkoenraadt: make sure aliases is an array.

parent 64d7b59c
......@@ -457,10 +457,12 @@ function expire_get_base_urls(&$node) {
if (isset($domain['path'])) {
$base_urls[$domain_id][] = $domain['path'];
}
foreach ($domain['aliases'] as $alias) {
if ($alias['redirect'] != 1) {
$temp_domain = array('scheme' => $domain['scheme'], 'subdomain' => $alias['pattern']);
$base_urls[$domain_id][] = domain_get_path($temp_domain);
if (is_array($domain['aliases'])) {
foreach ($domain['aliases'] as $alias) {
if ($alias['redirect'] != 1) {
$temp_domain = array('scheme' => $domain['scheme'], 'subdomain' => $alias['pattern']);
$base_urls[$domain_id][] = domain_get_path($temp_domain);
}
}
}
}
......
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