From 7b0d4e3d51dcaee3e0aea0b601c9709b0fbaee96 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Jan 2021 01:40:45 +0100 Subject: [PATCH] Aggiunta colorazione righe controllo database --- modules/aggiornamenti/database.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/aggiornamenti/database.php b/modules/aggiornamenti/database.php index aaf349aad..6ac6496cc 100644 --- a/modules/aggiornamenti/database.php +++ b/modules/aggiornamenti/database.php @@ -116,7 +116,7 @@ if (!empty($results)) { if (!empty($errors)) { echo ' - +
@@ -127,8 +127,13 @@ if (!empty($results)) { '; foreach ($errors as $name => $diff) { + if(count($diff) == 1 && array_key_exists('type',$diff) && str_contains($diff['type']['expected'] , $diff['type']['current'])){ + $class="info"; + }else{ + $class="warning"; + } echo ' - +
'.tr('Colonna').'
'.$name.'