aboutsummaryrefslogtreecommitdiff
path: root/views/default/canvas/layouts
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-14 18:23:57 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-14 18:23:57 +0000
commit4b3488d09014a5fd18dd2ed4d0bad4f55f49434e (patch)
tree1a2eb852321fa551517d5aac0e947d6992127c53 /views/default/canvas/layouts
parent8de97e9a4c9ed5776f9012ff7416b67b0339334f (diff)
downloadelgg-4b3488d09014a5fd18dd2ed4d0bad4f55f49434e.tar.gz
elgg-4b3488d09014a5fd18dd2ed4d0bad4f55f49434e.tar.bz2
Removed some "Undefined" messages
git-svn-id: https://code.elgg.org/elgg/trunk@2453 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/canvas/layouts')
-rw-r--r--views/default/canvas/layouts/widgets.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php
index f84a60df9..92a2026b8 100644
--- a/views/default/canvas/layouts/widgets.php
+++ b/views/default/canvas/layouts/widgets.php
@@ -47,9 +47,9 @@
<table class="draggable_widget" cellspacing="0"><tr><td>
<h3>
<?php echo $widget->name; ?>
- <input type="hidden" name="multiple" value="<?php echo $widgettypes[$widget->handler]->multiple; ?>" />
- <input type="hidden" name="side" value="<?php if (is_array($widgettypes[$widget->handler]->positions)) echo in_array('side',$widgettypes[$widget->handler]->positions); ?>" />
- <input type="hidden" name="main" value="<?php if (is_array($widgettypes[$widget->handler]->positions)) echo in_array('main',$widgettypes[$widget->handler]->positions); ?>" />
+ <input type="hidden" name="multiple" value="<?php if ((isset($widget->handler)) && (isset($widgettypes[$widget->handler]->multiple))) echo $widgettypes[$widget->handler]->multiple; ?>" />
+ <input type="hidden" name="side" value="<?php if ((isset($widget->handler)) && (isset($widgettypes[$widget->handler])) && (is_array($widgettypes[$widget->handler]->positions))) echo in_array('side',$widgettypes[$widget->handler]->positions); ?>" />
+ <input type="hidden" name="main" value="<?php if ((isset($widget->handler)) && (isset($widgettypes[$widget->handler])) && (is_array($widgettypes[$widget->handler]->positions))) echo in_array('main',$widgettypes[$widget->handler]->positions); ?>" />
<input type="hidden" name="handler" value="<?php echo htmlentities($handler); ?>" />
<input type="hidden" name="description" value="<?php echo htmlentities($widget->description, null, 'UTF-8'); ?>" />
<input type="hidden" name="guid" value="0" />