diff options
Diffstat (limited to 'mod/thewire/views')
-rw-r--r-- | mod/thewire/views/default/widgets/thewire/view.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/thewire/views/default/widgets/thewire/view.php b/mod/thewire/views/default/widgets/thewire/view.php index 3d08590ea..739fd7617 100644 --- a/mod/thewire/views/default/widgets/thewire/view.php +++ b/mod/thewire/views/default/widgets/thewire/view.php @@ -9,7 +9,11 @@ set_page_owner($page_owner->getGUID());
}
- $thewire = $page_owner->getObjects('thewire', $vars['entity']->num_display);
+ $num = $vars['entity']->num_display;
+ if(!$num)
+ $num = 4;
+
+ $thewire = $page_owner->getObjects('thewire', $num);
// If there are any thewire to view, view them
if (is_array($thewire) && sizeof($thewire) > 0) {
|