From 9b8b5e364c3d0b557e13f516a54e49745fd16bc0 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 25 Oct 2006 20:46:27 +0000 Subject: [PATCH] Fixed warning as a result of undefined array index --- campcaster/src/modules/htmlUI/var/ui_browser.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/campcaster/src/modules/htmlUI/var/ui_browser.class.php b/campcaster/src/modules/htmlUI/var/ui_browser.class.php index b7139aede..64e3d9350 100644 --- a/campcaster/src/modules/htmlUI/var/ui_browser.class.php +++ b/campcaster/src/modules/htmlUI/var/ui_browser.class.php @@ -279,9 +279,9 @@ class uiBrowser extends uiBase { return FALSE; } - foreach ($mdata as $key=>$val) { + foreach ($mdata as $key => $val) { if (is_array($val)) { - if ($val[$this->langid]) { + if (isset($val[$this->langid])) { $val = $val[$this->langid]; } else { $val = $val[UI_DEFAULT_LANGID];