[Vtigercrm-commits] [vtiger-commits] r4303 - /vtigercrm/trunk/modules/Calendar/updateCalendarSharing.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 01:15:58 EST 2006
Author: saraj
Date: Sun Mar 19 23:15:54 2006
New Revision: 4303
Log:
unwanted query has been removed
Modified:
vtigercrm/trunk/modules/Calendar/updateCalendarSharing.php
Modified: vtigercrm/trunk/modules/Calendar/updateCalendarSharing.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/updateCalendarSharing.php (original)
+++ vtigercrm/trunk/modules/Calendar/updateCalendarSharing.php Sun Mar 19 23:15:54 2006
@@ -19,13 +19,8 @@
{
if($sid != '')
{
- $check_query = "select * from sharedcalendar where userid=".$_REQUEST["current_userid"]." and sharedid=".$sid;
- $result = $adb->query($check_query);
- if($adb->num_rows($result) == 0)
- {
- $sql = "insert into sharedcalendar values (".$_REQUEST["current_userid"].",".$sid.")";
- $adb->query($sql);
- }
+ $sql = "insert into sharedcalendar values (".$_REQUEST["current_userid"].",".$sid.")";
+ $adb->query($sql);
}
}
header("Location: index.php?action=calendar_share&module=Calendar");
More information about the vtigercrm-commits
mailing list