jwarnier
2010-09-23 06b7fa917e37202d2adcc46d329a7c80cfb43079
server/lib/classes/ini_parser.inc.php
@@ -1,7 +1,7 @@
<?php
/*
Copyright (c) 2006, Till Brehm, projektfarm Gmbh
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -58,7 +58,11 @@
      foreach($this->config as $section => $data) {
         $content .= "[$section]\n";
         foreach($data as $item => $value) {
            if($value != '') $content .= "$item=$value\n";
            if($value != '') {
               $value    = trim($value);
               $item    = trim($item);
               $content .= "$item=$value\n";
            }
         }
      }
      return $content;