check for null instead

This commit is contained in:
Niko Storni 2019-11-14 13:00:07 -05:00
parent 2db45306e2
commit c84e3606e9

View file

@ -87,7 +87,7 @@ class AcquisitionActions extends Actions
{
$current_value = LBRY::statusYoutube($status_token);
if ($current_value['data']['email'] == $email) {
if ($channel_name === "" && $sync_consent === false) {
if ($channel_name === null && $sync_consent === false) {
Controller::redirect("/youtube/status/". $status_token);
}
$status = LBRY::editYoutube($status_token, $channel_name, null, $sync_consent);