Browse code

showdb user processing fix

Jiri Kuthan authored on 08/11/2003 03:57:04
Showing 1 changed files
... ...
@@ -854,20 +854,17 @@ case $1 in
854 854
 
855 855
 
856 856
 	showdb|userdb)
857
-		if [ $# -eq 2 ] ; then
858
-			is_user $2
859
-			if [ $? -ne 0 ] ; then
860
-				echo non-existent user
861
-				exit 1;
862
-			fi
863
-		elif [ $# -ne 1  ] ; then
857
+		if [ $# -ne 2 ] ; then
864 858
 			usage
865 859
 			exit 1
866 860
 		fi
867
-
868 861
 		shift
869
-
870 862
 		set_user $1
863
+		is_user
864
+		if [ $? -ne 0 ] ; then
865
+			echo non-existent user
866
+			exit 1;
867
+		fi
871 868
 
872 869
 		QUERY1="select $SUB_TABLE.$EMAIL_COLUMN from $SUB_TABLE where  \
873 870
 			$TABLE.$SUBSCRIBER_COLUMN='$SERUSER' and $TABLE.$REALM_COLUMN='$SERDOMAIN' "