Changeset 13906 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/attendee/attendee-repository.php
- Timestamp:
- 07/17/2024 11:19:52 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/attendee/attendee-repository.php
r13753 r13906 16 16 $wpdb->query( 17 17 $wpdb->prepare( 18 "insert ignore into {$gp_table_prefix}event_attendees (event_id, user_id, is_host, is_new_contributor ) values (%d, %d, %d, %d)",18 "insert ignore into {$gp_table_prefix}event_attendees (event_id, user_id, is_host, is_new_contributor, is_remote) values (%d, %d, %d, %d, %d)", 19 19 array( 20 20 'event_id' => $attendee->event_id(), … … 22 22 'is_host' => $attendee->is_host() ? 1 : 0, 23 23 'is_new_contributor' => $attendee->is_new_contributor() ? 1 : 0, 24 'is_remote' => $attendee->is_remote() ? 1 : 0, 24 25 ), 25 26 ), … … 43 44 $wpdb->update( 44 45 "{$gp_table_prefix}event_attendees", 45 array( 'is_host' => $attendee->is_host() ? 1 : 0 ), 46 array( 47 'is_host' => $attendee->is_host() ? 1 : 0, 48 'is_remote' => $attendee->is_remote() ? 1 : 0, 49 ), 46 50 array( 47 51 'event_id' => $attendee->event_id(), … … 132 136 is_host, 133 137 is_new_contributor, 138 is_remote, 134 139 ( 135 140 select group_concat( distinct locale ) … … 159 164 '1' === $row->is_new_contributor, 160 165 null === $row->locales ? array() : explode( ',', $row->locales ), 166 '1' === $row->is_remote, 161 167 ); 162 168 }, … … 184 190 is_host, 185 191 is_new_contributor, 192 is_remote, 186 193 ( 187 194 select group_concat( distinct locale ) … … 209 216 '1' === $row->is_new_contributor, 210 217 null === $row->locales ? array() : explode( ',', $row->locales ), 218 '1' === $row->is_remote, 211 219 ); 212 220 },
Note: See TracChangeset
for help on using the changeset viewer.