Skip to content

Commit

Permalink
Fix Bug #12441 - Unable to update custom fields due to missing functi…
Browse files Browse the repository at this point in the history
…on error.
  • Loading branch information
Daryn Warriner committed Oct 12, 2010
1 parent 57a8ee8 commit 49bb5df
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/custom_field_api.php
Expand Up @@ -436,10 +436,6 @@ function custom_field_create( $p_name ) {
* @access public
*/
function custom_field_update( $p_field_id, $p_def_array ) {
if( string_contains_scripting_chars( $p_def_array['name'] ) ) {
trigger_error( ERROR_CUSTOM_FIELD_INVALID_DEFINITION, ERROR );
}

$c_field_id = db_prepare_int( $p_field_id );
$c_name = db_prepare_string( trim( $p_def_array['name'] ) );
$c_type = db_prepare_int( $p_def_array['type'] );
Expand Down

0 comments on commit 49bb5df

Please sign in to comment.