X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fprescriptions.html.sh;h=a3db3a7d879157a24982c309ca357f5f2d58a76e;hb=afdc06688cc51a168011da48adbafcba238d3ae1;hp=9a0dd480912145e0cf6e5f7f79b77c52c3fc2187;hpb=18ecf2c0b034e25c418a83ecb1adefb9f3f04cd8;p=confetti
diff --git a/templates/prescriptions.html.sh b/templates/prescriptions.html.sh
index 9a0dd48..a3db3a7 100755
--- a/templates/prescriptions.html.sh
+++ b/templates/prescriptions.html.sh
@@ -15,18 +15,17 @@
# You should have received a copy of the GNU Affero General Public License
# along with Confetti. If not, see .
-edit="${_GET[edit]}"
client="${_GET[client]}"
-[ -z "$client" ] && client="${edit%.*.mpx}.vcf"
+edit="${_GET[edit]}"
+[ -n "$edit" ] && client="${edit%.*.mpx}.vcf"
cat <$(view_card "$client")
-