Jake Vanderwerf
2026-08-29 f859e64a57c624ff2daa2b21355f65a49fd4807d
inc/managers/Errors.php
@@ -201,7 +201,7 @@
     * @param array $context Additional context (i.e: data that was attempted to be acted on)
     * @param string $severity
     *
     * @return bool Whether it gets logged successfully
     * @return array
     */
   public function log(string $component, string $message, array $context = [], string $severity = 'error'): array
   {
@@ -219,8 +219,7 @@
         $user_was_logged_in = $user_id > 0 || (!empty($context['isLoggedIn']));
         // Determine source from context
         $source = isset($context['source']) ? $context['source'] :
            (isset($context['url']) ? 'frontend' : 'backend');
         $source = $context['source'] ?? (isset($context['url']) ? 'frontend' : 'backend');
         $result = $this->table->insert(
            [
@@ -355,7 +354,7 @@
         );
      }
      $body .= Emails::getInstance()->spacer(20);
      $body .= Emails::getInstance()->spacer();
      // Frequent errors section
      if (!empty($summary['frequent'])) {