aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-30 02:39:55 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-30 02:39:55 +0000
commit9af90ffc9a20033ca9fdd9182122c01600a0867b (patch)
tree62e8f28b7b486067ac480826b461a384486c3333 /engine/lib
parent9708d1b1b4d8a973e926499b59d943d63e1b99d7 (diff)
downloadelgg-9af90ffc9a20033ca9fdd9182122c01600a0867b.tar.gz
elgg-9af90ffc9a20033ca9fdd9182122c01600a0867b.tar.bz2
Fixed typo in previous commit.
git-svn-id: http://code.elgg.org/elgg/trunk@6980 36083f99-b078-4883-b0ff-0f9b5a30f544
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);