From 5d679872ffca6923ea6f0299d787d8a295f5cdfa Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sat, 12 Sep 2015 18:52:42 +0000 Subject: [PATCH] users : error of copy/paste. Thanks phpunit tests ! git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users.php b/users.php index 53b40c6..178ed1a 100644 --- a/users.php +++ b/users.php @@ -72,7 +72,7 @@ class users throw new Exception (dgettext("domframework", "Invalid email provided : too short"), 500); - if (strpos ($lastname, ":") !== false) + if (strpos ($email, ":") !== false) throw new Exception (dgettext("domframework", "Invalid email provided : colon forbidden"), 500);