From 4cc356db8cf66c04bc0b336683df756bfb96dab5 Mon Sep 17 00:00:00 2001
From: fantu <fantu@ispconfig3>
Date: Sun, 28 Feb 2010 04:56:24 -0500
Subject: [PATCH] Replace split (deprecated in php 5.3 and removed in php 6) with preg_split

---
 server/cron_daily.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/cron_daily.php b/server/cron_daily.php
index c68f8ab..20974e4 100644
--- a/server/cron_daily.php
+++ b/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;

--
Gitblit v1.9.1