--- signup_edit_form.inc	2009-09-19 01:33:42.000000000 +0200
+++ signup_edit_form.inc	2012-02-10 12:33:03.521572600 +0100
@@ -119,11 +119,14 @@
       // If there's no destination already set, redirect to the node.
       $destination = 'destination='. urlencode("node/$signup->nid");
     }
-    $signup_token = signup_get_token($signup->sid, 'cancel');
-    $form['elements']['cancel-signup'] = array(
-      '#type' => 'markup',
-      '#value' => l(t('Cancel signup'), "signup/cancel/$signup->sid/$signup_token", array('query' => $destination)),
-    );
+    if ($node->signup_status == 1) {
+		$signup_token = signup_get_token($signup->sid, 'cancel');
+		$form['elements']['cancel-signup'] = array(
+		  '#type' => 'markup',
+		  '#value' => l(t('Cancel signup'), "signup/cancel/$signup->sid/$signup_token", array('query' => $destination)),
+		);	
+	}
+
   }
 
   return $form;
