jwarnier
2010-09-24 e38d145b1b5392e9a88101f7dd5a31173e4cfa90
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 @@
}
?>
?>