summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-25 09:52:41 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-25 09:52:41 +0000
commit6636c0cc99fcbd28ad19e439da28115688968bcd (patch)
tree7e22a7064e74a7cc96a05dc604e5992f8dd97907 /modules
parent6ecf55d3193b684e6fb18c75aa422f1eeee11d9b (diff)
downloadbrdo-6636c0cc99fcbd28ad19e439da28115688968bcd.tar.gz
brdo-6636c0cc99fcbd28ad19e439da28115688968bcd.tar.bz2
- Patch #212608 by Gábor Hojtsy, webchick, stefgosselin: fixed E_NOTICE on block administration.
Diffstat (limited to 'modules')
-rw-r--r--modules/block/block.admin.inc3
-rw-r--r--modules/node/content_types.inc2
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/block/block.admin.inc b/modules/block/block.admin.inc
index eeff541ed..f09b5a8b1 100644
--- a/modules/block/block.admin.inc
+++ b/modules/block/block.admin.inc
@@ -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.
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index d6e6b92e9..12273f850 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -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) {