From 0865f660a74a784b6306afde8b45ec4aa9d176cc Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 1 Jun 2010 16:18:57 +0000 Subject: get_input() defaults to NULL instead of empty string. Works better with isset(). git-svn-id: http://code.elgg.org/elgg/trunk@6308 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/input.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/input.php') diff --git a/engine/lib/input.php b/engine/lib/input.php index cf0af2b8e..e5daa70ea 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -19,7 +19,7 @@ * @param $default mixed A default value for the variable if it is not found. * @param $filter_result If true then the result is filtered for bad tags. */ -function get_input($variable, $default = "", $filter_result = true) { +function get_input($variable, $default = NULL, $filter_result = TRUE) { global $CONFIG; @@ -237,7 +237,7 @@ function input_livesearch_page_handler($page) { default: // arbitrary subtype. - //@todo you cannot specify a subtype without a type. + //@todo you cannot specify a subtype without a type. // did this ever work? elgg_get_entities(array('subtype' => $type, 'owner_guid' => $owner_guid)); break; -- cgit v1.2.3