From a8c5542f8f223570b47d1a9cb574fce3a6ea05b9 Mon Sep 17 00:00:00 2001
From: jwage <jwage@625475ce-881a-0410-a577-b389adb331d8>
Date: Sun, 17 Feb 2008 22:52:37 +0000
Subject: [PATCH] Merged r3830 to trunk and 0.9 branch. Bug was originally
 fixed in the 0.10 branch first

---
 lib/Doctrine/Task/Dql.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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);
     }