From 4cc356db8cf66c04bc0b336683df756bfb96dab5 Mon Sep 17 00:00:00 2001 From: fantu Date: Sun, 28 Feb 2010 09:56:24 +0000 Subject: [PATCH] Replace split (deprecated in php 5.3 and removed in php 6) with preg_split --- server/cron_daily.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cron_daily.php b/server/cron_daily.php index c68f8ab893..20974e467d 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -92,7 +92,7 @@ function setConfigVar( $filename, $varName, $varValue ) { $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; -- GitLab