hello I have problems with this line of the foreach where in my version php 5.6.40 it worked correctly
line 22 --> foreach($valoresold as $campo => $valor){
if($valor != $valoresnew[$campo] || !array_key_exists ($campo, $valoresnew )){
if( !array_key_exists ($campo, $valoresnew ) ){
if($valor != ''){
$acciones .= "<li><b>".ucfirst($campo)."</b>: $valor.</li>";
}
} else {
$acciones .= "<li>the value <b>$campo</b> has been modified. old value: ".$valor." / new value: ".$valoresnew[$campo].".</li>";
}
}
}