fantu
2010-02-28 4cc356db8cf66c04bc0b336683df756bfb96dab5
Replace split (deprecated in php 5.3 and removed in php 6) with preg_split
1 files modified
2 ■■■ changed files
server/cron_daily.php 2 ●●● patch | view | raw | blame | history
server/cron_daily.php
@@ -92,7 +92,7 @@
        $out = '';
        $found = 0;
        foreach($lines as $line) {
            list($key, $value) = split("[\t= ]+", $line, 2);
            list($key, $value) = preg_split("/[\t= ]+/", $line, 2);
            if($key == $varName) {
                $out .= $varName." ".$varValue."\n";
                $found = 1;