Commit b7c26058 authored by Scott Euser's avatar Scott Euser Committed by Robert Kasza
Browse files

Issue #3323810: Fatal error if no results are returned from the query and sanitise report is run

parent a934fa75
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -654,6 +654,10 @@ class GoogleAnalyticsCounterFeed {
   * Sanitize report data.
   */
  protected function sanitizeReport() {
    if (!$this->results) {
      return;
    }

    // Named keys for report values.
    $this->results->rawRows = isset($this->results) && isset($this->results->rows) ?
      $this->results->rows :