diff --git a/lib/Doctrine/Task/Dql.php b/lib/Doctrine/Task/Dql.php index 0c552fece..ec3c76b8b 100644 --- a/lib/Doctrine/Task/Dql.php +++ b/lib/Doctrine/Task/Dql.php @@ -45,11 +45,12 @@ class Doctrine_Task_Dql extends Doctrine_Task $query = new Doctrine_Query(); - $params = explode(',', $this->getArgument('params')); + $params = $this->getArgument('params'); + $params = $params ? explode(',', $params):null; $this->notify('executing: "' . $dql . '" (' . implode(', ', $params) . ')'); - $results = $query->query($dql, $params); + $results = $query->query($dql); $this->_printResults($results); }