diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 10:42:37 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 10:42:37 +0000 |
commit | a943cc400d20391c63b1a967d43e2a86ae63765d (patch) | |
tree | 4f822321569274daf75d24f07a71c5484ad40a7b /views | |
parent | c19a2f51454df71e0fee89ece7765ba35bdc9244 (diff) | |
download | elgg-a943cc400d20391c63b1a967d43e2a86ae63765d.tar.gz elgg-a943cc400d20391c63b1a967d43e2a86ae63765d.tar.bz2 |
A warning fix for the dashboard layout.
git-svn-id: https://code.elgg.org/elgg/trunk@1882 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-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" /> |