Fixed the separator (sometimes it is other) in the ajax call get_agent_modules_json_for_multiple_agents.

(cherry picked from commit 6f71a01b0c)
This commit is contained in:
mdtrooper 2015-04-07 17:11:04 +02:00
parent b700dca0a4
commit f9936267e0
1 changed files with 6 additions and 1 deletions

View File

@ -246,7 +246,12 @@ if (is_ajax ()) {
foreach ($idAgents as $idA) {
if (empty($metaconsole_server_name)) {
$row = explode ('|', $idA);
if (strstr($idA, "|@_@|")) {
$row = explode ('|@_@|', $idA);
}
else {
$row = explode ('|', $idA);
}
$server_name = $row[0];
$id_agent = $row [1];
}