Output default Geo headers if the query has returns one post but the lat and lon are empty.

git-svn-id: https://develop.svn.wordpress.org/trunk@1283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-05-14 21:59:51 +00:00
parent c33087c85a
commit 75294d3187

View File

@ -846,7 +846,7 @@ include_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
function doGeoUrlHeader($post_list = '') {
global $posts;
if ($posts && 1 === count($posts)) {
if ($posts && 1 === count($posts) && ! empty($posts[0]->post_lat)) {
// there's only one result see if it has a geo code
$row = $posts[0];
$lat = $row->post_lat;