From: Jan Schneider Date: Thu, 1 Oct 2009 10:01:32 +0000 (+0200) Subject: MFB: Avoid notices (Bug #8523). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7957144af4f605e35d7a2a0bd835c937b4a0a0b6;p=horde.git MFB: Avoid notices (Bug #8523). --- 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']);