- DATE() is available only since MySQL 4.1.1, replaced by DAYOFMONTH()
- array_fill function available only with PHP >= 4.2.0, replaced by a for loop git-svn-id: http://piwigo.org/svn/trunk@775 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
3fc8c9824f
commit
a32a5a7d36
2 changed files with 16 additions and 7 deletions
|
|
@ -65,7 +65,7 @@ $template->assign_vars(array(
|
|||
//---------------------------------------------------------------- log history
|
||||
$query = '
|
||||
SELECT DISTINCT COUNT(*) as p,
|
||||
DATE(date) as d,
|
||||
DAYOFMONTH(date) as d,
|
||||
MONTH(date) as m,
|
||||
YEAR(date) as y
|
||||
FROM '.HISTORY_TABLE.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue