Skip to content

Commit

Permalink
fix parameter error from last commit
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5689 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Oct 18, 2008
1 parent 7051426 commit c5523fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utility_api.php
Expand Up @@ -152,7 +152,7 @@ function multi_sort( $p_array, $p_key, $p_direction = ASCENDING ) {
}

// Security measure: see http://www.mantisbt.org/bugs/view.php?id=9704 for details
if ( array_key_exist( $p_array, $p_key ) ) {
if ( array_key_exist( $p_key, $p_array ) ) {
$t_function = create_function( '$a, $b', "return $t_factor * strnatcasecmp( \$a['$p_key'], \$b['$p_key'] );" );
uasort( $p_array, $t_function );
}
Expand Down

0 comments on commit c5523fd

Please sign in to comment.