Development

Changeset 7010

You must first sign up to be able to contribute.

Changeset 7010

Show
Ignore:
Timestamp:
01/11/08 08:28:12 (1 year ago)
Author:
fabien
Message:

fixed configure:database task when databases.yml is empty

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/configure/sfConfigureDatabaseTask.class.php

    r6977 r7010  
    8383    $config[$options['env']][$options['name']] = array( 
    8484      'class' => $options['class'], 
    85       'param' => array_merge($config[$options['env']][$options['name']]['param'], array('dsn' => $arguments['dsn'])), 
     85      'param' => array_merge(isset($config[$options['env']][$options['name']]['param']) ? $config[$options['env']][$options['name']]['param'] : array(), array('dsn' => $arguments['dsn'])), 
    8686    ); 
    8787 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.