Changeset 1701040
- Timestamp:
- 07/23/2017 01:37:43 PM (9 years ago)
- File:
-
- 1 edited
-
ecampaign/branches/maintenance/uk/MP.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ecampaign/branches/maintenance/uk/MP.class.php
r1700883 r1701040 68 68 curl_setopt($ch, CURLOPT_HEADER, 0); 69 69 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 70 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1);70 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); 71 71 72 72 $xml = curl_exec($ch); … … 118 118 $mpInfo = self::fetchResource($url); 119 119 $member_id = $mpInfo ['member_id']; 120 $constituency = $mpInfo ['constituency'];120 $constituencyName = $mpInfo ['constituency']; 121 121 global $wpdb ; 122 122 123 $query = $wpdb->prepare ( "select constituency, `First name`, `Surname`, `Addressable Title`, addressAs, email from mp where constituency='%s'", $constituency );123 $query = $wpdb->prepare ( "select constituency, `First name`, `Surname`, `Addressable Title`, addressAs, email from mp where constituency='%s'", $constituencyName ); 124 124 125 125 $wpdb->show_errors(false);
Note: See TracChangeset
for help on using the changeset viewer.