Commit a8ee8cb5 authored by Steven Jones's avatar Steven Jones

Issue #1441970 by Steven Jones: Fixed Client Block assigned by default to non-existing region.

parent 8850fc51
......@@ -764,14 +764,14 @@ function hosting_client_block($op = 'list', $delta = 0, $edit = array()) {
$blocks['hosting_clients'] = array('info' => t('Hosting clients'),
'enabled' => 1, 'region' => 'left', 'weight' => 10);
break;
case 'view' :
switch ($delta) {
case 'hosting_clients':
if (user_access('view client')) {
$blocks['title'] = t('Clients');
$blocks['content'] = hosting_client_list();
}
$blocks['title'] = t('Clients');
$blocks['content'] = user_access('view client') ? hosting_client_list() : '';
break;
}
}
return $blocks;
......
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