From 7957144af4f605e35d7a2a0bd835c937b4a0a0b6 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 1 Oct 2009 12:01:32 +0200 Subject: [PATCH] MFB: Avoid notices (Bug #8523). --- turba/lib/View/Browse.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/turba/lib/View/Browse.php b/turba/lib/View/Browse.php index 20cf7e1ec..920059232 100644 --- a/turba/lib/View/Browse.php +++ b/turba/lib/View/Browse.php @@ -193,8 +193,9 @@ class Turba_View_Browse { isset($targetDriver->map[$info_key]['attribute'])) { $objectValue = $object->getValue($info_key); - // get 'data' value if object type is image. Get the direct value in other case. - $objAttributes[$info_key] = ($GLOBALS['attributes'][$info_key]['type'] == 'image') ? $objectValue['load']['data'] : $objectValue; + // Get 'data' value if object type is image, the + // direct value in other case. + $objAttributes[$info_key] = isset($GLOBALS['attributes'][$info_key]) && $GLOBALS['attributes'][$info_key]['type'] == 'image' ? $objectValue['load']['data'] : $objectValue; } } unset($objAttributes['__owner']); -- 2.11.0