aboutsummaryrefslogtreecommitdiff
path: root/cforum.c
diff options
context:
space:
mode:
Diffstat (limited to 'cforum.c')
-rw-r--r--cforum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cforum.c b/cforum.c
index 19dee61..2997ced 100644
--- a/cforum.c
+++ b/cforum.c
@@ -73,8 +73,8 @@ main(int argc, char *argv[])
postid = userid = 0;
while(p = nextparam(GET, 128)){
v = split(p);
- if(strcmp(p, "post") == 0) postid = atoi(v);
- else if(strcmp(p, "user") == 0) userid = atoi(v);
+ if(!postid && strcmp(p, "post") == 0) postid = atoi(v);
+ else if(!userid && strcmp(p, "user") == 0) userid = atoi(v);
}
/* Handle request. */