Skip to content
Permalink
Browse files

Merge pull request #565 from tarasfrompir/patch-3

Update common.class.php
  • Loading branch information...
sergejey committed Jun 6, 2019
2 parents c486b90 + c03bb5d commit f39cb45c600322bf6ad7753f9933c038b75f4b85
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/common.class.php
@@ -1373,7 +1373,7 @@ function getPlayerStatus($host = 'localhost')
$player->intCall = TRUE;
$player->usual($out);
$terminal = array();
if ($player->json['success']) {
if ($player->json['success'] && is_array($player->json['data'])) {
$terminal = array_merge($terminal, $player->json['data']);
//DebMes($player->json['data']);
} else {
@@ -1384,7 +1384,7 @@ function getPlayerStatus($host = 'localhost')
$player->ajax = TRUE;
$player->intCall = TRUE;
$player->usual($out);
if ($player->json['success']) {
if ($player->json['success'] && is_array($player->json['data'])) {
$terminal = array_merge($terminal, $player->json['data']);
//DebMes($player->json['data']);
return ($terminal);

0 comments on commit f39cb45

Please sign in to comment.
You can’t perform that action at this time.