Cancel Fix

"; $eid = db_result(db_query("select eid from artistworks_system_events where event_type=1 and uid=$uid and timestamp >= $created")); if (!$eid) { echo "writing new cancel row for $uid
"; $sql = "insert into artistworks_system_events (uid,event_type,severity,link,timestamp,message) values ($uid,1,0,'/user/$uid',$created,'Cancelled recurring subscription')"; //echo "$sql
"; db_query($sql); } } ?>