Skip to content
Snippets Groups Projects
Commit ef9c0f08 authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

Added additional checking for params variable

parent 03b16ffa
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,9 @@ class ScriptSort extends AbstractSort
*/
public function __construct($script, $returnType, $params = null, $order = self::ORDER_DESC)
{
$this->setParams($params);
if ($params) {
$this->setParams($params);
}
$this->setScript($script);
$this->setOrder($order);
$this->setReturnType($returnType);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment