Changeset 2580822
- Timestamp:
- 08/10/2021 12:01:57 PM (5 years ago)
- File:
-
- 1 edited
-
drivefx-woocommerce/trunk/settings/syncro_gate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
drivefx-woocommerce/trunk/settings/syncro_gate.php
r2560157 r2580822 238 238 $query = "SELECT user_email FROM %s WHERE id = %d"; 239 239 $docid = $wpdb->get_results(str_replace("'", "", $wpdb->prepare($query, $table_name, sanitize_text_field($syncroData->customer_user)))); 240 $syncroData->user_email = $docid[0]->user_email; 240 if(empty($docid)){ 241 global $current_user; 242 get_currentuserinfo(); 243 $syncroData->user_email = $current_user->user_email; 244 } else { 245 $syncroData->user_email = $docid[0]->user_email; 246 } 241 247 242 248 #Get POST Id for current order
Note: See TracChangeset
for help on using the changeset viewer.