aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2011-08-09 14:29:19 +0000
committerflop25 <flop25@piwigo.org>2011-08-09 14:29:19 +0000
commitaa3a90863483f7dc04f5c195d09672e05ac08d77 (patch)
treea7c3f72fcc5e5b8abd695fa03ce4267311b87bf9 /include/dblayer
parent803d50f534e370844d4d83ed731210600d1eefdc (diff)
bug:2383
/!\ corrected but not checked git-svn-id: http://piwigo.org/svn/trunk@11925 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/dblayer/functions_sqlite.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dblayer/functions_sqlite.inc.php b/include/dblayer/functions_sqlite.inc.php
index b3b9a2c1d..5f7d14d9e 100644
--- a/include/dblayer/functions_sqlite.inc.php
+++ b/include/dblayer/functions_sqlite.inc.php
@@ -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)