Skip to content

Commit 8cddcd7

Browse files
author
fantu
committed
FS#1792 - Replace split (deprecated in PHP 5.3)
1 parent 209ce85 commit 8cddcd7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ protected function write_config_file($tConf, $tContents) {
20672067
if ( is_file($tConf) ) {
20682068
$stat = exec('stat -c \'%a %U %G\' '.escapeshellarg($tConf), $output, $res);
20692069
if ($res == 0) { // stat successfull
2070-
list($access, $user, $group) = split(" ", $stat);
2070+
list($access, $user, $group) = explode(" ", $stat);
20712071
}
20722072

20732073
if ( copy($tConf, $tConf.'~') ) {

interface/lib/classes/validate_cron.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function run_time_format($field_name, $field_value, $validator) {
7878
if(preg_match("'^[0-9\-\,\/\*]+$'", $field_value) == false) return $this->get_error($validator['errmsg']); // allowed characters are 0-9, comma, *, -, /
7979
elseif(preg_match("'[\-\,\/][\-\,\/]'", $field_value) == true) return $this->get_error($validator['errmsg']); // comma, - and / never stand together
8080
//* now split list and check each entry. store used values in array for later limit-check
81-
$time_list = split(",", $field_value);
81+
$time_list = explode(",", $field_value);
8282
if(count($time_list) < 1) return $this->get_error($validator['errmsg']);
8383

8484
$max_entry = 0;

interface/lib/classes/validate_database.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function valid_ip_list($field_name, $field_value, $validator) {
3939
if($_POST["remote_access"] == "y") {
4040
if(trim($field_value) == "") return;
4141

42-
$values = split(",", $field_value);
42+
$values = explode(",", $field_value);
4343
foreach($values as $cur_value) {
4444
$cur_value = trim($cur_value);
4545

0 commit comments

Comments
 (0)