Changeset 3830

Show
Ignore:
Timestamp:
02/17/08 17:50:29 (2 years ago)
Author:
jwage
Message:

Fixed bug with params for dql query task.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Task/Dql.php

    r3674 r3830  
    4646        $query = new Doctrine_Query(); 
    4747 
    48         $params = explode(',', $this->getArgument('params')); 
     48        $params = $this->getArgument('params'); 
     49        $params = $params ? explode(',', $params):null; 
    4950 
    5051        $this->notify('executing: "' . $dql . '" (' . implode(', ', $params) . ')'); 
    5152 
    52         $results = $query->query($dql, $params); 
     53        $results = $query->query($dql); 
    5354 
    5455        $this->_printResults($results);