diff --git a/tools/project_manager/projectmgr.php b/tools/project_manager/projectmgr.php index 611316647a..f2de08ae39 100644 --- a/tools/project_manager/projectmgr.php +++ b/tools/project_manager/projectmgr.php @@ -117,11 +117,7 @@ function get_sql_contribution() if ( in_array( '', $values ) ) return NULL; } - function escape_callback($value) - { - return mysqli_real_escape_string(DPDatabase::get_connection(), $value); - } - $values = array_map("escape_callback", $values); + $values = array_map("escape_value", $values); if ( $comparator == '=' ) { @@ -1006,5 +1002,10 @@ function list_uber_projects( $can_see_all ) } } +function escape_value($value) +{ + return mysqli_real_escape_string(DPDatabase::get_connection(), $value); +} + // vim: sw=4 ts=4 expandtab ?>