X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fupdate_attendee.sh;fp=actions%2Fupdate_attendee.sh;h=6bfbe8822315d4f666a4850dd8fd2abde2491e1c;hp=fee91fc3d0f405a652e4a2315f46953ccb58c7d1;hb=3badbe5f34b9a481f43f83d07d4cd28a3aa7798b;hpb=19a85441a8f173c3d2cd3d29fd7d95d2b471bb3c diff --git a/actions/update_attendee.sh b/actions/update_attendee.sh index fee91fc..6bfbe88 100644 --- a/actions/update_attendee.sh +++ b/actions/update_attendee.sh @@ -33,7 +33,9 @@ case "$_POST[\"action\"]" in ;; cancel) rm "$tempfile" - echo -n "Location: http://$HTTP_HOST/?page=attendees#$card\n\n" + [ -f "$cardfile" ] \ + && echo -n "Location: http://$HTTP_HOST/?page=attendees#$card\n\n" \ + || echo -n "Location: http://$HTTP_HOST/?page=attendees\n\n" ;; delete) rm "$tempfile" "$cardfile"