Merge remote-tracking branch 'origin/3.7' into develop

Conflicts:
	htdocs/core/tpl/objectline_view.tpl.php
	htdocs/projet/element.php
This commit is contained in:
Laurent Destailleur
2015-03-11 03:55:46 +01:00
14 changed files with 182 additions and 90 deletions

View File

@@ -275,8 +275,7 @@ abstract class DoliDB implements Database
*/
function jdate($string, $gm=false)
{
if($string==0 || $string=="0000-00-00 00:00:00")
return NULL;
if ($string==0 || $string=="0000-00-00 00:00:00") return '';
$string=preg_replace('/([^0-9])/i','',$string);
$tmp=$string.'000000';
$date=dol_mktime(substr($tmp,8,2),substr($tmp,10,2),substr($tmp,12,2),substr($tmp,4,2),substr($tmp,6,2),substr($tmp,0,4),$gm);