php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #67259
Patch warning.diff revision 2014-05-12 15:39 UTC by anthon at piwik dot org

Patch warning.diff for geoip Bug #67259

Patch version 2014-05-12 15:39 UTC

Return to Bug #67259 | Download this patch
Patch Revisions:

Developer: anthon@piwik.org

Index: geoip.c
===================================================================
--- geoip.c	(revision 333516)
+++ geoip.c	(working copy)
@@ -338,7 +338,7 @@
 		gi = GeoIP_open_type(edition, GEOIP_STANDARD);
 	} else {
 		if (NULL != GeoIPDBFileName[edition])
-			php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[GEOIP_COUNTRY_EDITION]);
+			php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available at %s.", GeoIPDBFileName[edition]);
 		else
 			php_error_docref(NULL TSRMLS_CC, E_WARNING, "Required database not available.");
 		return;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC