fixing warnings in error.log if heardList is empty...

This commit is contained in:
dg9vh 2017-04-15 14:45:21 +00:00
parent ec42b59a10
commit 6c274f8e90
2 changed files with 3 additions and 1 deletions

View file

@ -530,6 +530,8 @@ function getLastHeard($logLines, $onlyLast) {
}
function getActualMode($metaLastHeard, $mmdvmconfigs) {
if (count($metaLastHeard) == 0)
return _("idle");
// returns mode of repeater actual working in
$listElem = $metaLastHeard[0];
$timestamp = new DateTime($listElem[0],new DateTimeZone(TIMEZONE));

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20170407-1 (".getGitVersion().")");
define("VERSION", "20170415-1 (".getGitVersion().")");
?>