Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device tracepath using wrong variables to check for traceroute output #13674

Merged
merged 1 commit into from Jan 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions includes/html/pages/device/overview/tracepath.inc.php
Expand Up @@ -26,8 +26,7 @@
use App\Models\DevicePerf;

$perf_info = DevicePerf::where('device_id', $device['device_id'])->latest('timestamp')->first();
$perf_debug = json_decode($perf_info['debug'], true);
if ($perf_debug['traceroute']) {
if ($perf_info['debug']['traceroute']) {
echo "
<div class='row'>
<div class='col-md-12'>
Expand All @@ -36,7 +35,7 @@
<h3 class='panel-title'>Traceroute ({$perf_info['timestamp']})</h3>
</div>
<div class='panel-body'>
<pre>{$perf_debug['traceroute']}</pre>
<pre>{$perf_info['debug']['traceroute']}</pre>
</div>
</div>
</div>
Expand Down