Skip to content

Commit f9f3807

Browse files
Fix failing static tests
1 parent c2c456d commit f9f3807

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/statistics/php/charts.class.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -864,10 +864,10 @@ class Charts extends \NDB_Page
864864
);
865865

866866
$projectData = [];
867-
foreach ($projects as $project) {
868-
$projectName = $project->getName();
869-
if (in_array($projectName, array_keys($cachedSizeData))) {
870-
if (!is_null($cachedSizeData[$projectName])) {
867+
if (!is_null($cachedSizeData)) {
868+
foreach ($projects as $project) {
869+
$projectName = $project->getName();
870+
if (in_array($projectName, array_keys($cachedSizeData))) {
871871
$projectData[] = [
872872
'label' => $projectName,
873873
...$cachedSizeData[$projectName],

0 commit comments

Comments
 (0)