Changeset 2968554
- Timestamp:
- 09/19/2023 06:08:02 AM (3 years ago)
- File:
-
- 1 edited
-
outgrow/trunk/outgrow-api.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
outgrow/trunk/outgrow-api.php
r2851407 r2968554 194 194 for ($i = 0; $i < $calci_count; $i++) { 195 195 $url1=explode('{',$res3[$i]->calc_url); 196 $final_url=$url1[0].$res3[$i]-> $res3->parentapp.'?sLead=1';196 $final_url=$url1[0].$res3[$i]->parentapp.'?sLead=1'; 197 197 if ($wpdb->insert('wp_outgrow_calci_table', array( 198 198 'name' => $res3[$i]->name, … … 218 218 function calci_script_page($api){ 219 219 global $wpdb; 220 $msgError = 0; 220 221 $db_result = $wpdb->get_results('select * from wp_outgrow_calci_api_table'); 221 222 if(!$db_result){ … … 241 242 $request = Requests::get('https://api-calc.outgrow.co/api/v1/calculator?status=Live&type=All&sort=alpha_as', $headers); 242 243 $res = json_decode($request->body); 243 if ( $res->code == 401) {244 if (isset($res->code) && $res->code == 401) { 244 245 $wpdb->delete('wp_outgrow_calci_api_table', array( 245 246 'api_key' => $db_row->api_key
Note: See TracChangeset
for help on using the changeset viewer.