mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1304 activity table might be totally empty in the X last weeks
This commit is contained in:
@@ -321,7 +321,12 @@ for ($i=0; $i < $nb_weeks; $i++)
|
||||
}
|
||||
|
||||
$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
|
||||
for ($i=1; $i < count($temp_data); $i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user