2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Only display link to edit in limesurvey if case exists in limesurvey

This commit is contained in:
azammitdcarf
2009-02-26 22:32:49 +00:00
parent f5774e8458
commit 0a96a90b7a

View File

@@ -216,8 +216,10 @@ if ($case_id != false)
$sid = get_lime_sid($case_id);
$id = get_lime_id($case_id);
print "<h3><a href='" . LIME_URL . "admin/admin.php?action=dataentry&amp;sid=$sid&amp;subaction=edit&amp;id=$id'>" . T_("Modify responses for this case") . "</a></h3>";
if ($id)
print "<h3><a href='" . LIME_URL . "admin/admin.php?action=dataentry&amp;sid=$sid&amp;subaction=edit&amp;id=$id'>" . T_("Modify responses for this case") . "</a></h3>";
else
print "<h3>" . T_("Case not yet started in Limesurvey") . "</h3>";
//set an outcome