diff --git src/bp-xprofile/classes/class-bp-xprofile-field.php src/bp-xprofile/classes/class-bp-xprofile-field.php
index 8913109..01ac644 100644
|
|
class BP_XProfile_Field { |
282 | 282 | } |
283 | 283 | |
284 | 284 | /** |
285 | | * Check for null so field options can be changed without changing any |
| 285 | * Check for false so field options can be changed without changing any |
286 | 286 | * other part of the field. The described situation will return 0 here. |
287 | 287 | */ |
288 | | if ( $wpdb->query( $sql ) !== null ) { |
| 288 | if ( $wpdb->query( $sql ) !== false ) { |
289 | 289 | |
290 | 290 | if ( !empty( $this->id ) ) { |
291 | 291 | $field_id = $this->id; |
diff --git a/bp-xprofile/classes/class-bp-xprofile-group.php b/bp-xprofile/classes/class-bp-xprofile-group.php
index d2215fb..4899937 100644
a
|
b
|
class BP_XProfile_Group { |
140 | 140 | // Attempt to insert or update |
141 | 141 | $query = $wpdb->query( $sql ); |
142 | 142 | |
143 | | // Bail if query fails |
144 | | if ( empty( $query ) || is_wp_error( $query ) ) { |
| 143 | /** |
| 144 | * Check for false so field options can be changed without changing any |
| 145 | * other part of the field. The described situation will return 0 here. |
| 146 | */ |
| 147 | if ( $query === false ) { |
145 | 148 | return false; |
146 | 149 | } |
147 | 150 | |