aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/latest_photos/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/latest_photos/edit.php')
-rw-r--r--views/default/widgets/latest_photos/edit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/views/default/widgets/latest_photos/edit.php b/views/default/widgets/latest_photos/edit.php
index 3b334d722..06693648d 100644
--- a/views/default/widgets/latest_photos/edit.php
+++ b/views/default/widgets/latest_photos/edit.php
@@ -1,9 +1,11 @@
<p>
<?php
- echo elgg_echo("tidypics:widget:num_latest") . ": ";
+echo elgg_echo("tidypics:widget:num_latest") . ": ";
+
+if ($vars['entity']->num_display == '') {
+ $vars['entity']->num_display = 6;
+}
- if($vars['entity']->num_display == '') $vars['entity']->num_display = 6;
-
?>
<select name="params[num_display]">
<option value="6" <?php if($vars['entity']->num_display == 6) echo "SELECTED"; ?>>6</option>