diff --git a/src/Ushahidi/DataSource/Email/Email.php b/src/Ushahidi/DataSource/Email/Email.php index cd041af74..8f4316642 100644 --- a/src/Ushahidi/DataSource/Email/Email.php +++ b/src/Ushahidi/DataSource/Email/Email.php @@ -116,6 +116,10 @@ public function getOptions() 'description' => 'Fetch every email from the inbox, or only unread.', 'options' => ['All', 'Unread'], 'rules' => ['required'] + ], + 'incoming_last_uid' => [ + 'label' => '', + 'input' => 'hidden', ] ]; } @@ -188,7 +192,7 @@ public function fetch($limit = false) // Return on connection error if (! $connection || $errors || $alerts) { $errors = is_array($errors) ? implode(', ', $errors) : ""; - $alerts = is_array($alerts) ? implode(', ', $errors) : ""; + $alerts = is_array($alerts) ? implode(', ', $alerts) : ""; Log::info("Could not connect to incoming email server", compact('errors', 'alerts')); return []; }