]> git.plutz.net Git - confetti/blobdiff - actions/update_attendee.sh
visual updates, allow ordering of vcards
[confetti] / actions / update_attendee.sh
index fee91fc3d0f405a652e4a2315f46953ccb58c7d1..6bfbe8822315d4f666a4850dd8fd2abde2491e1c 100644 (file)
@@ -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"