Build fix after r236956. Use array_get to avoid warnings.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2018 06:33:57 +0000 (06:33 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Oct 2018 06:33:57 +0000 (06:33 +0000)
* public/include/report-processor.php:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237065 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/include/report-processor.php

index 1db0d8b..1f0e563 100644 (file)
@@ -1,3 +1,9 @@
+2018-10-11  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Build fix after r236956. Use array_get to avoid warnings.
+
+        * public/include/report-processor.php:
+
 2018-10-09  Dewei Zhu  <dewei_zhu@apple.com>
 
         Performance dashboard should show added iterations due failed build requests.
index be00889..30f84b9 100644 (file)
@@ -246,7 +246,7 @@ class ReportProcessor {
                     }
                 } else {
                     $metrics = $test_row ? array_get($test_row['metrics'], $metric_name) : NULL;
-                    $metric_id = $metrics ? $metrics[''] : NULL;
+                    $metric_id = $metrics ? array_get($metrics, '') : NULL;
                     if (!$metric_id)
                         $metric_id = $this->db->select_or_insert_row('test_metrics', 'metric', array('name' => $metric_name, 'test' => $test_id));
                     if (!$metric_id)