aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-01 16:18:57 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-01 16:18:57 +0000
commit0865f660a74a784b6306afde8b45ec4aa9d176cc (patch)
tree9009dbf83dcd7b6adf1b58acc7d75c35fce93369 /engine
parent655e2a2c1b88e7626164dd388e7711444f77e3f7 (diff)
downloadelgg-0865f660a74a784b6306afde8b45ec4aa9d176cc.tar.gz
elgg-0865f660a74a784b6306afde8b45ec4aa9d176cc.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/input.php4
1 files changed, 2 insertions, 2 deletions
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;