Skip to content

Commit

Permalink
split() is deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Sep 13, 2017
1 parent 01cf7c6 commit dfe3dd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion hermes/lib/Application.php
Expand Up @@ -69,8 +69,9 @@ public function download(Horde_Variables $vars)

switch ($vars->actionID) {
case 'export':

// 'export' used from Ajax view
$ids = split(',', $vars->s);
$ids = explode(',', $vars->s);
if (!is_array($ids)) {
$notification->push(_("No time slices were submitted"), 'horde.error');
return false;
Expand Down
4 changes: 2 additions & 2 deletions vilma/config/hooks.php.dist
Expand Up @@ -29,7 +29,7 @@
//
// $qmail_locals = '/tmp/locals';
// $domainlist = file_get_contents($qmail_locals);
// $domains = split("\n", $domainlist);
// $domains = explode("\n", $domainlist);
//
// if (!in_array($domain, $domains)) {
// $domains[] = $domain;
Expand Down Expand Up @@ -64,7 +64,7 @@
//
// $qmail_locals = '/tmp/locals';
// $domainlist = file_get_contents($qmail_locals);
// $domains = split("\n", $domainlist);
// $domains = explode("\n", $domainlist);
//
// if ($key = array_search($domain, $domains)) {
// unset($domains[$key]);
Expand Down
4 changes: 2 additions & 2 deletions whups/lib/Form/Query/PropertyCriterion.php
Expand Up @@ -79,7 +79,7 @@ public function execute($vars)
$id = $vars->get('id');
if (strlen(trim($id))) {
$newpath = $path;
$ids = split("[\\t\\n ,]+", $id);
$ids = preg_split('/[\\t\\n ,]+/', $id);

if (count($ids) > 1) {
$newpath = $GLOBALS['whups_query']->insertBranch(
Expand Down Expand Up @@ -133,4 +133,4 @@ public function execute($vars)

$this->unsetVars($vars);
}
}
}

0 comments on commit dfe3dd2

Please sign in to comment.