diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 8dc6a0c8d5..9d7850802f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-07-07 Miguel de Dios + + * include/functions_db.php: changed in function "get_db_all_rows_filter" the + parameter $filter to set empty array as default value. + 2010-07-07 Miguel de Dios * include/functions_filemanager.php: added const MIME_TEXT. added source diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 8be54bfbe1..c55856ba53 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -1946,7 +1946,7 @@ function get_db_all_rows_sql ($sql, $search_history_db = false, $cache = true) { * * @return mixed Array of the row or false in case of error. */ -function get_db_all_rows_filter ($table, $filter, $fields = false, $where_join = 'AND', $search_history_db = false, $returnSQL = false) { +function get_db_all_rows_filter ($table, $filter = array(), $fields = false, $where_join = 'AND', $search_history_db = false, $returnSQL = false) { //TODO: Validate and clean fields if (empty ($fields)) { $fields = '*';