]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't try to verify URL if the user has left it out when making a new event
authorZach Copley <zach@status.net>
Sat, 17 Sep 2011 20:36:05 +0000 (13:36 -0700)
committerZach Copley <zach@status.net>
Sat, 17 Sep 2011 20:38:09 +0000 (13:38 -0700)
plugins/Event/newevent.php

index 34e83cd7e099e428747bdb392ab67c171645bb55..4c2157e01eebbe7b63843e820959618300713ade 100644 (file)
@@ -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.'));
             }