]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
get_input() defaults to NULL instead of empty string. Works better with isset().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 1 Jun 2010 16:18:57 +0000 (16:18 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 1 Jun 2010 16:18:57 +0000 (16:18 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6308 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/input.php

index cf0af2b8e905c2ed38d92eb86a9414eb5294e29f..e5daa70eadcd7409c71b17cbe18694f37017856c 100644 (file)
@@ -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;