Modifying Label Creation to handle no Printer Profile existence case.
[koha.git] / labels / label-save-template.pl
index b4d362a..b8e477b 100755 (executable)
@@ -43,7 +43,7 @@ SaveTemplate(
 
 );
 
-SetAssociatedProfile( $prof_id, $tmpl_id );
+SetAssociatedProfile( $prof_id, $tmpl_id ) if $prof_id;
 
 print $query->redirect("./label-templates.pl");