diff --git a/actions-sms.php b/actions-sms.php index 7ce5797..f397311 100644 --- a/actions-sms.php +++ b/actions-sms.php @@ -319,7 +319,7 @@ function delnote($number,$bikeNum,$message) $reportedBy=$row["userName"]; $matches=explode(" ",$message,3); - $userNote=$db->escape(trim($matches[2])); + $userNote=$db->escape(trim($matches[2] ?? '')); if($userNote=='') {