diff --git a/sccpManTraits/helperFunctions.php b/sccpManTraits/helperFunctions.php index fdbdd42..17d33f6 100644 --- a/sccpManTraits/helperFunctions.php +++ b/sccpManTraits/helperFunctions.php @@ -288,7 +288,13 @@ trait helperfunctions { return $sccp_conf_init; } - + public function compareArrays(array $a, array $b){ + if (array_diff_assoc($a, $b)===[]) { + return 0; + } + return ($a>$b)?1:-1; + } + public function checkTftpMapping(){ exec('in.tftpd -V', $tftpInfo); $info['TFTP Server'] = array('Version' => 'Not Found', 'about' => 'Mapping not available');