aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 3a4fb0467..c00a88e84 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2160,7 +2160,7 @@ function elgg_is_sticky_form($form_name) {
* @todo should this filter the default value?
* @link http://docs.elgg.org/Tutorials/UI/StickyForms
*/
-function elgg_get_sticky_value($form_name, $variable, $default = NULL, $filter_result = true) {
+function elgg_get_sticky_value($form_name, $variable='', $default = NULL, $filter_result = true) {
if (isset($_SESSION['sticky_forms'][$form_name][$variable])) {
$value = $_SESSION['sticky_forms'][$form_name][$variable];
if ($filter_result) {
@@ -2366,7 +2366,7 @@ function elgg_get_nav_items() {
// make sure the url is a valid link.
// this prevents disabled plugins leaving behind
// valid links when not using a pagehandler.
- if ($featured_url_info) {
+ if ($featured_urls_info) {
foreach ($featured_urls_info as $info) {
if (in_array($info->value->url, $valid_urls)) {
$featured_urls[] = $info->value->url;
@@ -2622,4 +2622,4 @@ register_elgg_event_handler('init', 'system', 'elgg_init');
register_plugin_hook('unit_test', 'system', 'elgg_api_test');
register_elgg_event_handler('init', 'system', 'add_custom_menu_items', 1000);
-register_elgg_event_handler('init', 'system', 'elgg_walled_garden', 1000); \ No newline at end of file
+register_elgg_event_handler('init', 'system', 'elgg_walled_garden', 1000);