tbrehm
2011-06-24 8eb646a8abd3c39d37adb64d3908cd6ee6b1e5a8
server/lib/classes/ini_parser.inc.php
@@ -28,7 +28,7 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
class ini_parser {
class ini_parser{
   var $config;
@@ -37,9 +37,8 @@
      $lines = explode("\n",$ini);
      
      foreach($lines as $line) {
         $line = trim($line);
         if($line != '') {
            $line = trim($line);
            if(preg_match("/^\[([\w\d_]+)\]$/", $line, $matches)) {
               $section = strtolower($matches[1]);
            } elseif(preg_match("/^([\w\d_]+)=(.*)$/", $line, $matches) && $section != null) {
@@ -70,4 +69,4 @@
}
?>
?>