if($rescomp>0)// Programs have a version higher than database. We did not add "&& $rescomp < 3" because we want upgrade process for build upgrades
{
{
dol_syslog("main.inc: database version ".$conf->global->MAIN_VERSION_LAST_UPGRADE." is lower than programs version ".DOL_VERSION.". Redirect to install page.",LOG_WARNING);
dol_syslog("main.inc: database version ".$versiontocompare." is lower than programs version ".DOL_VERSION.". Redirect to install page.",LOG_WARNING);