/!\ corrected but not checked

git-svn-id: http://piwigo.org/svn/trunk@11925 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
flop25
2011-08-09 14:29:19 +00:00
parent 803d50f534
commit aa3a908634

View File

@@ -55,7 +55,7 @@ function pwg_db_connect($host, $user, $password, $database)
}
$link->createFunction('now', 'pwg_now', 0);
$link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 0);
$link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 1);
$link->createFunction('md5', 'md5', 1);
$link->createFunction('if', 'pwg_if', 3);
@@ -694,7 +694,7 @@ function pwg_now()
function pwg_unix_timestamp()
{
return time();
return strtotime($strDate);
}
function pwg_if($expression, $value1, $value2)