From 03aafca5ad78df33d1b9608a27ee4e2b5a7acbe3 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 14 Nov 2008 18:37:03 +0000 Subject: Removed some "Undefined" messages git-svn-id: https://code.elgg.org/elgg/trunk@2455 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/access.php | 6 +++--- views/default/input/button.php | 6 +++--- views/default/input/submit.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'views') diff --git a/views/default/input/access.php b/views/default/input/access.php index dfd23df1d..693a8da4a 100644 --- a/views/default/input/access.php +++ b/views/default/input/access.php @@ -17,10 +17,10 @@ * */ - $class = $vars['class']; + if (isset($vars['class'])) $class = $vars['class']; if (!$class) $class = "input-access"; - if (!is_array($vars['options'])) + if ((!isset($vars['options'])) || (!is_array($vars['options']))) { $vars['options'] = array(); $vars['options'] = get_write_access_array(); @@ -30,7 +30,7 @@ ?> - class=""> $option) { diff --git a/views/default/input/button.php b/views/default/input/button.php index 9a72f38b0..dab488719 100644 --- a/views/default/input/button.php +++ b/views/default/input/button.php @@ -21,7 +21,7 @@ global $CONFIG; - $class = $vars['class']; + if (isset($vars['class'])) $class = $vars['class']; if (!$class) $class = "submit_button"; if (isset($vars['type'])) { $type = strtolower($vars['type']); } else { $type = 'submit'; } @@ -34,8 +34,8 @@ } $value = htmlentities($vars['value'], null, 'UTF-8'); - $name = $vars['internalname']; - $src = $vars['src']; + if (isset($vars['internalname'])) $name = $vars['internalname']; + if (isset($vars['src'])) $src = $vars['src']; if (strpos($src,$CONFIG->wwwroot)===false) $src = ""; // blank src if trying to access an offsite image. ?> value="" src="" class="" /> \ No newline at end of file diff --git a/views/default/input/submit.php b/views/default/input/submit.php index 591a43998..28a0bc5fd 100644 --- a/views/default/input/submit.php +++ b/views/default/input/submit.php @@ -19,7 +19,7 @@ */ $vars['type'] = 'submit'; - $class = $vars['class']; + if (isset($vars['class'])) $class = $vars['class']; if (!$class) $class = "submit_button"; $vars['class'] = $class; -- cgit v1.2.3