Development

Changeset 7914

You must first sign up to be able to contribute.

Changeset 7914

Show
Ignore:
Timestamp:
03/15/08 23:27:02 (6 months ago)
Author:
fabien
Message:

fixed an error when no source exist in i18n message source

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/i18n/sfMessageSource_Aggregate.class.php

    r4580 r7914  
    121121  { 
    122122    // Append to the last message source only 
    123     $this->messageSources[count($this->messageSources) - 1]->append($message); 
     123    if ($count = count($this->messageSources) > 0) 
     124    { 
     125      $this->messageSources[$count - 1]->append($message); 
     126    } 
    124127  } 
    125128