diff --git a/view/template/acquisition/youtube_edit.php b/view/template/acquisition/youtube_edit.php index ee0b202c..423d1e84 100644 --- a/view/template/acquisition/youtube_edit.php +++ b/view/template/acquisition/youtube_edit.php @@ -5,7 +5,7 @@ $email = Request::encodeStringFromUser($_POST['new_email']); $sync_consent = isset($_POST['sync_consent']); -if (!preg_match("/@[A-Za-z0-9-]+$/", $channel_name)) { +if ($channel_name !== "" && !preg_match("/@[A-Za-z0-9-]+$/", $channel_name)) { $channel_name = "@" . $channel_name; }