viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Fix notice in network iterator time calculation 2, a=chris

Chris Pollett [2020-07-16 17:Jul:th]
Fix notice in network iterator time calculation 2, a=chris
Filename
src/library/index_bundle_iterators/NetworkIterator.php
diff --git a/src/library/index_bundle_iterators/NetworkIterator.php b/src/library/index_bundle_iterators/NetworkIterator.php
index 47050ed89..c0cda0b1b 100644
--- a/src/library/index_bundle_iterators/NetworkIterator.php
+++ b/src/library/index_bundle_iterators/NetworkIterator.php
@@ -262,8 +262,8 @@ class NetworkIterator extends IndexBundleIterator
                 }
                 $max_time = max($max_time, $pre_result['TOTAL_TIME'] ?? 0);
                 $machine_times .= $in4 . $lookup_link . " ".
-                    number_format($pre_result['ELAPSED_TIME'], 6) . "/" .
-                    number_format($pre_result['TOTAL_TIME'], 6) . "<br />";
+                    number_format($pre_result['ELAPSED_TIME'] ?? 0, 6) . "/" .
+                    number_format($pre_result['TOTAL_TIME'] ?? 0, 6) . "<br />";
             } else {
                 $machine_times .= $in4 . $lookup_link . " No Results<br />";
             }
ViewGit