Skip to content

Commit 4cc356d

Browse files
author
fantu
committed
Replace split (deprecated in php 5.3 and removed in php 6) with preg_split
1 parent 87a11b4 commit 4cc356d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/cron_daily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function setConfigVar( $filename, $varName, $varValue ) {
9292
$out = '';
9393
$found = 0;
9494
foreach($lines as $line) {
95-
list($key, $value) = split("[\t= ]+", $line, 2);
95+
list($key, $value) = preg_split("/[\t= ]+/", $line, 2);
9696
if($key == $varName) {
9797
$out .= $varName." ".$varValue."\n";
9898
$found = 1;

0 commit comments

Comments
 (0)