[Vtigercrm-commits] [vtiger-commits] r6541 - /vtigercrm/trunk/modules/Calendar/updateCalendarSharing.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 27 11:33:56 EDT 2006


Author: saraj
Date: Sat May 27 09:33:52 2006
New Revision: 6541

Log:
changes made for calendar sharing

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 Sat May 27 09:33:52 2006
@@ -10,12 +10,10 @@
  ********************************************************************************/
 require_once('include/database/PearDatabase.php');
 global $adb;
-$sharedid = $_REQUEST['sharedid'];
-if(isset($_REQUEST['sharedid']) && $_REQUEST['sharedid'] != '')
+$sharedid = $_REQUEST['user'];
+if(isset($sharedid) && $sharedid != null)
 {
-        //split the string and store in an array
-        $storearray = explode (";",$sharedid);
-        foreach($storearray as $sid)
+        foreach($sharedid as $sid)
         {
                 if($sid != '')
                 {
@@ -23,7 +21,7 @@
 		        $adb->query($sql);
                 }
         }
-        header("Location: index.php?action=calendar_share&module=Calendar");
+        header("Location: index.php?action=index&module=Calendar&parenttab=My Home Page");
 }
 
 ?>





More information about the vtigercrm-commits mailing list