Commit Graph

5 Commits

Author SHA1 Message Date
Rodrigo Primo b917522160 typo 2018-06-22 10:13:12 -03:00
Rodrigo Primo df3306084e Check if array index exists before using it
WC_Geolite_Integration::get_country_iso() sometimes returns null instead of an array, so this commit adds a check to account for that possibility before using the returned value. Doing this to prevent the following undefined index notice:

PHP Notice: Undefined index: country in wp-content/plugins/woocommerce/includes/class-wc-geolite-integration.php on line 60

Fixes #20594
2018-06-22 10:13:12 -03:00
Claudio Sanches 827d957d66 Load GeoLite2 Reader when creating a new instance of WC_Geolite_Integration 2018-03-15 17:30:17 -03:00
Claudio Sanches 4e9c8f2590 Updated GeoLite2 Reader errors to warning level 2018-03-14 16:03:31 -03:00
Claudio Sanches 7f6f4b848d Created WC_Geolite_Integration class to handle with GeoLite2 integration 2018-03-14 13:57:07 -03:00