Index: flag_content.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flag_content/flag_content.module,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 flag_content.module
--- flag_content.module	18 Jan 2007 19:45:29 -0000	1.1.2.4
+++ flag_content.module	19 Feb 2007 00:00:19 -0000
@@ -109,8 +109,7 @@ function flag_content_link($type, $node 
   return $links;
 }
 
-function flag_content_add() {
-  $nid = (int)arg(2);
+function flag_content_add($nid = 0) {
   if ($nid) {
     // Insert the data into the table
     db_query("INSERT INTO {flag_content} (nid, timestamp) VALUES (%d, %d)", $nid, time());
@@ -124,8 +123,7 @@ function flag_content_add() {
   drupal_goto("node/$nid");
 }  
 
-function flag_content_unflag() {
-  $nid = (int)arg(2);
+function flag_content_unflag($nid = 0) {
   if ($nid) {
     _flag_content_unflag($nid);
     drupal_set_message(t('The item was unflagged.'));
