mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
Merge branch '6.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/filefunc.inc.php
This commit is contained in:
@@ -3263,7 +3263,12 @@ function dol_print_error($db='',$error='',$errors=null)
|
||||
}
|
||||
|
||||
if (empty($dolibarr_main_prod)) print $out;
|
||||
else define("MAIN_CORE_ERROR", 1);
|
||||
else
|
||||
{
|
||||
print $langs->trans("DolibarrHasDetectedError").'. ';
|
||||
print $langs->trans("YouCanSetOptionDolibarrMainProdToZero");
|
||||
define("MAIN_CORE_ERROR", 1);
|
||||
}
|
||||
//else print 'Sorry, an error occured but the parameter $dolibarr_main_prod is defined in conf file so no message is reported to your browser. Please read the log file for error message.';
|
||||
dol_syslog("Error ".$syslog, LOG_ERR);
|
||||
}
|
||||
@@ -6209,6 +6214,8 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
|
||||
{
|
||||
global $db,$langs;
|
||||
|
||||
$value=trim($value);
|
||||
|
||||
if ($mode == 0)
|
||||
{
|
||||
$value=preg_replace('/\*/','%',$value); // Replace * with %
|
||||
|
||||
Reference in New Issue
Block a user