Development

Changeset 1761

You must first sign up to be able to contribute.

Changeset 1761

Show
Ignore:
Timestamp:
08/23/06 14:29:48 (2 years ago)
Author:
fabien
Message:

fixed sfPropelData::dumpData() does not work when array has only one value (closes #755)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/addon/propel/sfPropelData.class.php

    r1415 r1761  
    228228  { 
    229229    $sameFile = true; 
    230     if (is_dir($directory_or_file) && 'all' === $tables ||  (is_array($tables) && 1 < count($tables))
     230    if (is_dir($directory_or_file)
    231231    { 
    232232      // multi files 
  • trunk/lib/util/Spyc.class.php

    r1415 r1761  
    104104     * @param int $wordwrap Pass in 0 for no wordwrap, false for default (40) 
    105105     */ 
    106      public function YAMLDump($array,$indent = false,$wordwrap = false) { 
     106     public static function YAMLDump($array,$indent = false,$wordwrap = false) { 
    107107      $spyc = new Spyc; 
    108108      return $spyc->dump($array,$indent,$wordwrap);