From ae635aeaa6dd4de726d5bd32652b93cd7cf55129 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Thu, 13 Aug 2009 16:48:06 +0200 Subject: [PATCH] Replaced SPLIT call in install.php with preg_split because SPLIT is a depreceated function --- src/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/install.php b/src/install.php index e99e6c3..867b3a6 100644 --- a/src/install.php +++ b/src/install.php @@ -391,7 +391,8 @@ else if ( $content['INSTALL_STEP'] == 5 ) $totaldbdefs = str_replace( "`logcon_", "`" . $_SESSION["UserDBPref"], $totaldbdefs ); // Now split by sql command - $mycommands = split( ";\n", $totaldbdefs ); +// $mycommands = split( ";\n", $totaldbdefs ); DEPRECEATED CALL! + $mycommands = preg_split('/;\n/', $totaldbdefs, -1, PREG_SPLIT_NO_EMPTY); // // check for different linefeed // if ( count($mycommands) <= 1 )