Skip to content

Commit

Permalink
make drone hapy for 3.9-dev (#20033)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 authored and Michael Babker committed May 12, 2018
1 parent 5efcb34 commit 535f62c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/com_content/models/articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,11 @@ protected function getListQuery()
case 'month':
if ($monthFilter != '')
{
$query->where($db->quote(date("Y-m-d", strtotime($monthFilter)) . ' 00:00:00') . ' <= CASE WHEN a.publish_up = ' . $db->quote($db->getNullDate()) .
' THEN a.created ELSE a.publish_up END');
$query->where($db->quote(date("Y-m-t", strtotime($monthFilter)) . ' 23:59:59') . ' >= CASE WHEN a.publish_up = ' . $db->quote($db->getNullDate()) .
' THEN a.created ELSE a.publish_up END');
}
$query->where($db->quote(date("Y-m-d", strtotime($monthFilter)) . ' 00:00:00') . ' <= CASE WHEN a.publish_up = '
. $db->quote($db->getNullDate()) . ' THEN a.created ELSE a.publish_up END');
$query->where($db->quote(date("Y-m-t", strtotime($monthFilter)) . ' 23:59:59') . ' >= CASE WHEN a.publish_up = '
. $db->quote($db->getNullDate()) . ' THEN a.created ELSE a.publish_up END');
}
break;

case 'title':
Expand Down Expand Up @@ -728,7 +728,7 @@ public function getStart()
*
* @since __DEPLOY_VERSION__
*/
function countItemsByMonth()
public function countItemsByMonth()
{
// Create a new query object.
$db = $this->getDbo();
Expand Down

0 comments on commit 535f62c

Please sign in to comment.