]> git.mxchange.org Git - friendica.git/blobdiff - mod/register.php
Merge pull request #3439 from tobiasd/20170506-token
[friendica.git] / mod / register.php
index cfb65b69dfce883169d689721d372825b0540d3e..4766445d88cedf8f69bd97991c11583fe6fac37e 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/enotify.php');
 require_once('include/bbcode.php');
 require_once('include/user.php');
@@ -82,7 +84,7 @@ function register_post(App $a) {
                }
 
                // Only send a password mail when the password wasn't manually provided
-               if (!x($_POST,'password1') OR !x($_POST,'confirm')) {
+               if (!x($_POST,'password1') || !x($_POST,'confirm')) {
                        $res = send_register_open_eml(
                                $user['email'],
                                $a->config['sitename'],