From ad23a1f7d71a4112ee4c6ff0e9ffaea643e36127 Mon Sep 17 00:00:00 2001 From: Maxime AILLOUD Date: Wed, 18 May 2011 12:43:44 +0200 Subject: [PATCH] Avoid php notice if the database configuration was not provided --- Command/PhingCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/PhingCommand.php b/Command/PhingCommand.php index 21d5f36..f89dfad 100644 --- a/Command/PhingCommand.php +++ b/Command/PhingCommand.php @@ -310,7 +310,7 @@ EOT; protected function checkConfiguration() { $parameters = $this->container->get('propel.configuration')->getParameters(); - if (0 === count($parameters['datasources'])) { + if (!isset($parameters['datasources']) ||0 === count($parameters['datasources'])) { throw new \RuntimeException('Propel should be configured (no database configuration found).'); } }