From a9795bdd25b421017dd4232b9dfbb779839c1db6 Mon Sep 17 00:00:00 2001 From: ozhozh Date: Sat, 5 Sep 2009 16:54:07 +0000 Subject: [PATCH] Typo in yourls_get_location() git-svn-id: http://yourls.googlecode.com/svn/trunk@126 12232710-3e20-11de-b438-597f59cd7555 --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 7b4754b..e08c2a9 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -862,7 +862,7 @@ function yourls_get_location( $ip = '', $default = '' ) { if ( !file_exists( dirname(__FILE__).'/geo/GeoIP.dat') || !file_exists( dirname(__FILE__).'/geo/geoip.inc') ) return $default; - if ( $ip = '' ) + if ( $ip == '' ) $ip = yourls_get_IP(); require_once( dirname(__FILE__).'/geo/geoip.inc') ; -- 2.45.0