Skip to content
Snippets Groups Projects
Commit 6636c0cc authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #212608 by Gábor Hojtsy, webchick, stefgosselin: fixed E_NOTICE on block administration.

parent 6ecf55d3
No related merge requests found
......@@ -123,8 +123,7 @@ function _block_compare($a, $b) {
return $status;
}
// Sort by region (in the order defined by theme .info file).
$place = $regions[$a['region']] - $regions[$b['region']];
if ($place) {
if ((!empty($a['region']) && !empty($b['region'])) && ($place = ($regions[$a['region']] - $regions[$b['region']]))) {
return $place;
}
// Sort by weight.
......
......@@ -364,7 +364,7 @@ function node_node_type($op, $info) {
function node_type_reset(&$type) {
$info_array = module_invoke_all('node_info');
if (isset($info_array[$type->orig_type])) {
$info_array[$type->orig_type]['type'] = $type->orig_type;
$info_array[$type->orig_type]['type'] = $type->orig_type;
$info = _node_type_set_defaults($info_array[$type->orig_type]);
foreach ($info as $field => $value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment