Add CompareArrays helper function to help with nested arrays
This commit is contained in:
parent
5752d9f393
commit
d8183ce9fe
|
@ -288,7 +288,13 @@ trait helperfunctions {
|
||||||
return $sccp_conf_init;
|
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(){
|
public function checkTftpMapping(){
|
||||||
exec('in.tftpd -V', $tftpInfo);
|
exec('in.tftpd -V', $tftpInfo);
|
||||||
$info['TFTP Server'] = array('Version' => 'Not Found', 'about' => 'Mapping not available');
|
$info['TFTP Server'] = array('Version' => 'Not Found', 'about' => 'Mapping not available');
|
||||||
|
|
Loading…
Reference in a new issue