diff --git a/batch/cron.php b/batch/cron.php index 4caa8b03..b7e2357c 100644 --- a/batch/cron.php +++ b/batch/cron.php @@ -44,7 +44,7 @@ if(isset($opts->help)) } $dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'databases'); -$db = Zend_Db::factory($dbConfig); +$db = Zend_Db::factory($dbConfig->db); $commandesM = new Application_Model_Commandes($db);