From f5cb9a9006bf2d53b1027f7eca5c0dfbad266d06 Mon Sep 17 00:00:00 2001 From: Gregor Aisch Date: Mon, 17 Feb 2020 11:29:51 +0000 Subject: [PATCH] use null for empty emails --- plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.php b/plugin.php index 7412176..16db1df 100644 --- a/plugin.php +++ b/plugin.php @@ -49,7 +49,7 @@ private function checkLogin() { $user->setCreatedAt(time()); $user->setOAuthSignIn('twitter::' . $twitterid); // we use the email field to store the twitterid - $user->setEmail(''); + $user->setEmail(null); $user->setRole(UserPeer::ROLE_EDITOR); // activate user rigth away $user->setName($screenname); $user->setSmProfile('https://twitter.com/'.$screenname); @@ -140,4 +140,4 @@ public function getRequiredLibraries() { ); } -} \ No newline at end of file +}