forked from GNUsocial/gnu-social
Don't try to verify URL if the user has left it out when making a new event
This commit is contained in:
parent
2d6b4497a4
commit
b34812152d
@ -206,7 +206,7 @@ class NeweventAction extends Action
|
||||
throw new ClientException(_m('Event must have an end time.'));
|
||||
}
|
||||
|
||||
if (isset($this->url) && Validate::uri($this->url) === false) {
|
||||
if (!empty($this->url) && Validate::uri($this->url) === false) {
|
||||
// TRANS: Client exception thrown when trying to post an event with an invalid URL.
|
||||
throw new ClientException(_m('URL must be valid.'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user