diff options
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index f31cde92c..016b9c12a 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -48,8 +48,8 @@ <h3> <?php echo $widget->name; ?> <input type="hidden" name="multiple" value="<?php echo $widgettypes[$widget->handler]->multiple; ?>" /> - <input type="hidden" name="side" value="<?php echo in_array('side',$widgettypes[$widget->handler]->positions); ?>" /> - <input type="hidden" name="main" value="<?php echo in_array('main',$widgettypes[$widget->handler]->positions); ?>" /> + <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="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" /> |