Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Aug 12, 2012
1 parent 43c4170 commit 445bd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PodsAPI.php
Expand Up @@ -1263,7 +1263,7 @@ public function save_field ( $params, $table_operation = true ) {
return pods_error( sprintf( __( '%s is not editable', 'pods' ), $field[ 'name' ] ), $this );
}

if ( ( null !== $old_name || $field[ 'name' ] != $old_name ) && in_array( $field[ 'name' ], array( 'id', 'ID', 'created', 'modified', 'author' ) ) )
if ( null !== $old_name && $field[ 'name' ] != $old_name && in_array( $field[ 'name' ], array( 'id', 'ID', 'created', 'modified', 'author' ) ) )
return pods_error( sprintf( __( '%s is reserved for internal Pods usage, please try a different name', 'pods' ), $field[ 'name' ] ), $this );

foreach ( $object_fields as $object_field => $object_field_opt ) {
Expand Down

0 comments on commit 445bd7b

Please sign in to comment.