Skip to content
Permalink
Browse files

Clear var result before use it

  • Loading branch information
alexey1234 committed Jul 11, 2015
1 parent 120f2da commit 96c0b611d52e6a3501723a0094ee550edd2ed090
Showing with 1 addition and 0 deletions.
  1. +1 −0 conf/ext/thebrig/extensions_thebrig_ajax.php
@@ -60,6 +60,7 @@ function get_jailinfo() {
$tabledata['status'][$n_jail["jailno"]] = "{$total} processes: {$runn_cnt} running, {$sleep_cnt} sleeping";
$tabledata['id'][$n_jail["jailno"]] = $jail_id;
if (1 == exec ("jls -j ".$n_jail['jailname']. " vnet") ) {
unset ($result);
$cmd = "jexec ".$n_jail['jailname']." ifconfig epair" . $n_jail["jailno"] ."b | grep inet | awk '{ print \$2}'";
exec ($cmd, $result);
$tabledata['ip'][$n_jail["jailno"]] = implode(",", $result); } else {

0 comments on commit 96c0b61

Please sign in to comment.