mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
ambiguous SQL fix
This commit is contained in:
parent
85ded9d76b
commit
641d35c942
@ -56,10 +56,10 @@ class BlogHolder extends Page {
|
||||
$month = Director::urlParam('ID');
|
||||
|
||||
if(is_numeric($month) && is_numeric($month)){
|
||||
$dateCheck = "AND Date BETWEEN '$year-$month-1' AND '$year-$month-31'";
|
||||
$dateCheck = "AND `BlogEntry`.Date BETWEEN '$year-$month-1' AND '$year-$month-31'";
|
||||
}
|
||||
else if(isset($year)){
|
||||
$dateCheck = "AND Date BETWEEN '$year-1-1' AND '$year-12-31'";
|
||||
$dateCheck = "AND `BlogEntry`.Date BETWEEN '$year-1-1' AND '$year-12-31'";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user