Skip to content
Snippets Groups Projects
Commit 6cb317d6 authored by Demian Katz's avatar Demian Katz
Browse files

Merge branch 'release-2.5'

parents 9fd58b52 f62b805d
Branches
Tags
No related merge requests found
...@@ -776,7 +776,9 @@ class Server ...@@ -776,7 +776,9 @@ class Server
// Set default date range if not already provided: // Set default date range if not already provided:
if (empty($params['from'])) { if (empty($params['from'])) {
$params['from'] = $this->earliestDatestamp; $params['from'] = $this->earliestDatestamp;
if (strlen($params['from']) > strlen($params['until'])) { if (!empty($params['until'])
&& strlen($params['from']) > strlen($params['until'])
) {
$params['from'] = substr($params['from'], 0, 10); $params['from'] = substr($params['from'], 0, 10);
} }
} }
...@@ -793,7 +795,7 @@ class Server ...@@ -793,7 +795,7 @@ class Server
// If no set field is configured and a set parameter comes in, we have a // If no set field is configured and a set parameter comes in, we have a
// problem: // problem:
if (is_null($this->setField) && isset($params['set']) if (null === $this->setField && empty($this->setQueries)
&& !empty($params['set']) && !empty($params['set'])
) { ) {
throw new \Exception('noSetHierarchy:Sets not supported'); throw new \Exception('noSetHierarchy:Sets not 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