X-Git-Url: https://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=users.sh;fp=users.sh;h=be68a8acbe04ca0864917f92b0aef9541536429a;hp=f60f8a645ff7ae4445737bbf92d58dad8ec913c1;hb=0591b0842c75fd078d19e488f5e4a8d047052551;hpb=e7fcaf2f6bd62868cce4dab41056ee2597c47d58 diff --git a/users.sh b/users.sh index f60f8a6..be68a8a 100755 --- a/users.sh +++ b/users.sh @@ -274,7 +274,7 @@ user_register(){ fi if [ "$USER_REQUIREEMAIL" = true ]; then - if [ ! "email" ]; then + if [ ! "$email" ]; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_INVALID" elif user_emailexist "$email"; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_EXISTS" @@ -342,7 +342,7 @@ user_invite(){ local email="$(POST email |user_checkemail)" local message="$(POST message)" - if [ ! "email" ]; then + if [ ! "$email" ]; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_INVALID" elif user_emailexist "$email"; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_EXISTS"