Menu

#3636 (ok 3.5.3) Error in generated configuration arrray

3.5.2
fixed
1
2013-06-11
2012-07-10
Alain ICHE
No

Since of numerous versions, when we use 'setup' and save the 'config' file, all array generation miss the last comma as in :
$cfg['PDFPageSizes'] = array(
'A3',
'A4',
'A5',
'letter' <--- where is the comma ?
'legal');
The error is in 'ConfigGenerator.class.php' on line 144 where the line must be
$ret .= ($i > 0 ? ',' : '') . $crlf . ' ' . $retv[$i];
instead of
$ret .= ($i < $imax ? ($i > 0 ? ',' : '') : '') . $crlf . ' ' . $retv[$i];

Discussion

  • Madhura Jayaratne

    • assigned_to: nobody --> madhuracj
    • summary: Error in config generator --> Error in generated configuration arrray
     
  • Madhura Jayaratne

    • priority: 5 --> 1
    • status: open --> open-fixed
     
  • Madhura Jayaratne

    This bug was fixed in repository and will be part of a future release; thanks for reporting.

     
  • Madhura Jayaratne

    • summary: Error in generated configuration arrray --> (ok 3.5.3) Error in generated configuration arrray
     
  • Marc Delisle

    Marc Delisle - 2012-10-08
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB