mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
- reoptimize queries for MySql
- week starts on monday/sunday applies also to weekly calendar git-svn-id: http://piwigo.org/svn/trunk@12118 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -289,37 +289,4 @@ WHERE id IN (' . implode(',',$page['items']) .')';
|
||||
}
|
||||
pwg_debug('end initialize_calendar');
|
||||
}
|
||||
|
||||
function array_to_int($array)
|
||||
{
|
||||
$result = array();
|
||||
foreach ($array as $k => $v)
|
||||
{
|
||||
if ((int)$k==$k)
|
||||
{
|
||||
$key = (int) $k;
|
||||
}
|
||||
else
|
||||
{
|
||||
$key = $k;
|
||||
}
|
||||
if (is_array($v))
|
||||
{
|
||||
$result[$key] = array_to_int($v);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (is_int($v))
|
||||
{
|
||||
$value = (int) $v;
|
||||
}
|
||||
else
|
||||
{
|
||||
$value = $v;
|
||||
}
|
||||
$result[$key] = $value;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user