missing }

This commit is contained in:
Dan Ballard 2014-01-06 20:59:19 -05:00
parent 85f45f37ce
commit aa566989a3
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ function simple_location_post_save($post_id) {
$ipLite = new ip2location_lite;
$ipLite->setKey($key);
$locations = $ipLite->getCity($_SERVER['REMOTE_ADDR']);
print 'locations: ';
print_r($locations);
}
}
if ($_POST['city'] == '') {
$_POST['city'] = $locations['cityName'];