diff options
Diffstat (limited to 'mod/pages/lib')
-rw-r--r-- | mod/pages/lib/pages.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/pages/lib/pages.php b/mod/pages/lib/pages.php index 079155190..0a6f3a620 100644 --- a/mod/pages/lib/pages.php +++ b/mod/pages/lib/pages.php @@ -26,13 +26,16 @@ function pages_prepare_form_vars($page = null, $parent_guid = 0) { if ($page) { foreach (array_keys($values) as $field) { - $values[$field] = $page->$field; + if (isset($page->$field)) { + $values[$field] = $page->$field; + } } } if (elgg_is_sticky_form('page')) { - foreach (array_keys($values) as $field) { - $values[$field] = elgg_get_sticky_value('page', $field); + $sticky_values = elgg_get_sticky_values('page'); + foreach ($sticky_values as $key => $value) { + $values[$key] = $value; } } |