Commit a392ef01 authored by David Lesieur's avatar David Lesieur

Updated for slight API change.

parent b3b99584
......@@ -129,9 +129,9 @@ class date_facet extends cck_facet {
function build_sort_query_count(&$query) {
$query->add_orderby('count', 'DESC');
$query->add_orderby($this->_field['field_name'] .'_year', 'ASC');
if ($query->get_field($this->_field['field_name'] .'_month')) {
if ($query->has_field($this->_field['field_name'] .'_month')) {
$query->add_orderby($this->_field['field_name'] .'_month', 'ASC');
if ($query->get_field($this->_field['field_name'] .'_day')) {
if ($query->has_field($this->_field['field_name'] .'_day')) {
$query->add_orderby($this->_field['field_name'] .'_day', 'ASC');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment