Merge pull request #68 from lerni/master

check is_numeric instead of is_float for $priority
This commit is contained in:
Sean Harvey 2014-08-14 09:29:51 +12:00
commit 27e79a4e02

View File

@ -107,7 +107,7 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension {
} else if ($priority == -1) {
return false;
} else {
return (is_float($priority) && $priority <= 1.0) ? $priority : 0.5;
return (is_numeric($priority) && $priority <= 1.0) ? $priority : 0.5;
}
}
}