Private GIT

Skip to content
Snippets Groups Projects
Commit ca11598a authored by loiclau's avatar loiclau
Browse files

fix(function) replace split

parent 0d325c8b
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ while ($res = $DBRESULT->fetchRow()) { ...@@ -205,7 +205,7 @@ while ($res = $DBRESULT->fetchRow()) {
if ($tmp != -1) { if ($tmp != -1) {
if (isset($tmp['h'])) { if (isset($tmp['h'])) {
$tmp2 = $centreon->CentreonLogAction->getHostId($res['object_id']); $tmp2 = $centreon->CentreonLogAction->getHostId($res['object_id']);
$tabHost = split(',', $tmp2["h"]); $tabHost = explode(',', $tmp2["h"]);
if (count($tabHost) == 1) { if (count($tabHost) == 1) {
$host_name = $centreon->CentreonLogAction->getHostName($tmp2["h"]); $host_name = $centreon->CentreonLogAction->getHostName($tmp2["h"]);
} elseif (count($tabHost) > 1) { } elseif (count($tabHost) > 1) {
...@@ -216,7 +216,7 @@ while ($res = $DBRESULT->fetchRow()) { ...@@ -216,7 +216,7 @@ while ($res = $DBRESULT->fetchRow()) {
} }
} elseif (isset($tmp['hg'])) { } elseif (isset($tmp['hg'])) {
$tmp2 = $centreon->CentreonLogAction->getHostId($res['object_id']); $tmp2 = $centreon->CentreonLogAction->getHostId($res['object_id']);
$tabHost = split(',', $tmp2["hg"]); $tabHost = explode(',', $tmp2["hg"]);
if (count($tabHost) == 1) { if (count($tabHost) == 1) {
$hg_name = $centreon->CentreonLogAction->getHostGroupName($tmp2["hg"]); $hg_name = $centreon->CentreonLogAction->getHostGroupName($tmp2["hg"]);
} elseif (count($tabHost) > 1) { } elseif (count($tabHost) > 1) {
......
...@@ -142,7 +142,7 @@ if ($centreon->user->access->checkAction("service_comment")) { ...@@ -142,7 +142,7 @@ if ($centreon->user->access->checkAction("service_comment")) {
//global services comment //global services comment
if (!isset($_POST["host_id"])) { if (!isset($_POST["host_id"])) {
foreach ($_POST["service_id"] as $value) { foreach ($_POST["service_id"] as $value) {
$info = split('-', $value); $info = explode('-', $value);
AddSvcComment( AddSvcComment(
$info[0], $info[0],
$info[1], $info[1],
......
...@@ -383,7 +383,7 @@ if (!$centreon->user->access->checkAction("host_schedule_downtime") ...@@ -383,7 +383,7 @@ if (!$centreon->user->access->checkAction("host_schedule_downtime")
} }
foreach ($_POST["service_id"] as $value) { foreach ($_POST["service_id"] as $value) {
$info = split('-', $value); $info = explode('-', $value);
if ($centreon->user->access->admin || in_array($info[0], $host_acl_id)) { if ($centreon->user->access->admin || in_array($info[0], $host_acl_id)) {
$ecObj->addSvcDowntime( $ecObj->addSvcDowntime(
$info[0], $info[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment