Skip to content

Commit

Permalink
! prevent php8 warning on null object in strtolower
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Feb 27, 2024
1 parent 1227e2e commit 19a3207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/controllers/Emailpost.controller.php
Expand Up @@ -7,7 +7,7 @@
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* @version 1.1.9
* @version 1.1.10
*
*/

Expand Down Expand Up @@ -129,7 +129,7 @@ public function action_pbe_post($data = null, $force = false, $key = null)
return pbe_emailError('error_' . ($email_message->message_type === 'p' ? 'pm_' : '') . 'not_find_entry', $email_message);

// The key received was not sent to this member ... how we love those email aggregators
if (strtolower($key_owner) !== $email_message->email['from'] && !$force)
if ((empty($key_owner) || strtolower($key_owner) !== $email_message->email['from']) && !$force)
return pbe_emailError('error_key_sender_match', $email_message);

// In maintenance mode, just log it for now
Expand Down

0 comments on commit 19a3207

Please sign in to comment.