From: Zach Copley Date: Sat, 17 Sep 2011 20:36:05 +0000 (-0700) Subject: Don't try to verify URL if the user has left it out when making a new event X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4593f9cd33905124042dd95d4b849853c3dc394;p=quix0rs-gnu-social.git Don't try to verify URL if the user has left it out when making a new event --- diff --git a/plugins/Event/newevent.php b/plugins/Event/newevent.php index 34e83cd7e0..4c2157e01e 100644 --- a/plugins/Event/newevent.php +++ b/plugins/Event/newevent.php @@ -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.')); }