We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 554b590 + 3d62c2f commit 644dfd6Copy full SHA for 644dfd6
1 file changed
includes/dashboard.php
@@ -156,10 +156,11 @@ function renderConnection(string $connectionType): string
156
'tethering' => 'device-3',
157
'cellular' => 'device-4'
158
];
159
- $device = $deviceMap[$connectionType] ?? 'device-unknown';
+ if (!isset($deviceMap[$connectionType])) {
160
+ return 'app/img/solid.php';
161
+ }
162
- // return generated URL for solid.php
- return sprintf('app/img/solid.php?joint&%s&out', $device);
163
+ return sprintf('app/img/solid.php?joint&%s&out', $deviceMap[$connectionType]);
164
}
165
166
/**
0 commit comments