mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Merge pull request #68 from lerni/master
check is_numeric instead of is_float for $priority
This commit is contained in:
commit
27e79a4e02
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user