mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix invalid dnos test data (#11158)
It encoded non-ascii data in the test string
This commit is contained in:
@@ -673,7 +673,7 @@ class ModuleTestHelper
|
||||
|
||||
// only dump data for the given modules
|
||||
foreach ($modules as $module) {
|
||||
foreach ($module_dump_info[$module] as $table => $info) {
|
||||
foreach ($module_dump_info[$module] ?: [] as $table => $info) {
|
||||
// check for custom where
|
||||
$where = isset($info['custom_where']) ? $info['custom_where'] : "WHERE `$table`.`device_id`=?";
|
||||
$params = [$device_id];
|
||||
@@ -681,7 +681,7 @@ class ModuleTestHelper
|
||||
// build joins
|
||||
$join = '';
|
||||
$select = ["`$table`.*"];
|
||||
foreach ($info['joins'] as $join_info) {
|
||||
foreach ($info['joins'] ?: [] as $join_info) {
|
||||
if (isset($join_info['custom'])) {
|
||||
$join .= ' ' . $join_info['custom'];
|
||||
|
||||
|
Reference in New Issue
Block a user