Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Clear var result before use it
- Loading branch information
Showing
with
1 addition
and
0 deletions.
-
+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 { |
|
|
|