mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #1304 activity table might be totally empty in the X last weeks
This commit is contained in:
+6
-1
@@ -321,7 +321,12 @@ for ($i=0; $i < $nb_weeks; $i++)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$size = 1;
|
$size = 1;
|
||||||
$chart_data[$temp_data[0]['w']][$temp_data[0]['d']] = $size;
|
|
||||||
|
if (isset($temp_data[0]))
|
||||||
|
{
|
||||||
|
$chart_data[$temp_data[0]['w']][$temp_data[0]['d']] = $size;
|
||||||
|
}
|
||||||
|
|
||||||
//Set sizes in chart data
|
//Set sizes in chart data
|
||||||
for ($i=1; $i < count($temp_data); $i++)
|
for ($i=1; $i < count($temp_data); $i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user