diff --git a/core/components/archivist/elements/snippets/snippet.getarchives.php b/core/components/archivist/elements/snippets/snippet.getarchives.php index a1c5339..aff94e3 100644 --- a/core/components/archivist/elements/snippets/snippet.getarchives.php +++ b/core/components/archivist/elements/snippets/snippet.getarchives.php @@ -49,7 +49,7 @@ } /* get filter by year, month, and/or day. Sanitize to prevent injection. */ -$where = $modx->getOption('where',$scriptProperties,false); +$where = $modx->getOption('where',$scriptProperties,"[]"); $where = is_array($where) ? $where : $modx->fromJSON($where); $parameters = $modx->request->getParameters(); @@ -113,4 +113,4 @@ } else { return 'You must have getResources downloaded and installed to use this snippet.'; } -return $output; \ No newline at end of file +return $output;