summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Davis2013-02-05 15:06:08 (GMT)
committer Ben Davis2013-02-05 15:06:08 (GMT)
commit70024dc44a64d61211f2855858f41c3a1a27c888 (patch)
tree54633fbf8ab2d78b8d9278373b54aeec6a63067f
parentd5c5a547a0d89bdfeec159e015f8b419aaebbe04 (diff)
Issue #1807690 by rondev: Fixed undefinded index notice.
-rw-r--r--weight.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/weight.module b/weight.module
index f125c51..b49b793 100644
--- a/weight.module
+++ b/weight.module
@@ -553,6 +553,9 @@ function _weight_get_weight($node) {
}
elseif (module_exists('translation') && $node->nid != $node->tnid) {
$settings = _weight_get_settings($node->type);
+ if (empty($settings)) {
+ return FALSE;
+ }
if ($settings['sync_translations'] && $node->tnid != 0) {
$nid = $node->tnid;
}