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;
         |