[Vtigercrm-commits] [vtiger-commits] r6315 - /vtigercrm/trunk/modules/HelpDesk/Merge.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 23 01:46:15 EDT 2006
Author: saraj
Date: Mon May 22 23:46:12 2006
New Revision: 6315
Log:
modified for 5.0 beta release
Modified:
vtigercrm/trunk/modules/HelpDesk/Merge.php
Modified: vtigercrm/trunk/modules/HelpDesk/Merge.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/Merge.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/Merge.php Mon May 22 23:46:12 2006
@@ -28,6 +28,11 @@
require_once('config.php');
$templateid = $_REQUEST['mergefile'];
+
+if($templateid == "")
+{
+ die("Select Mail Merge Template");
+}
//get the particular file from db and store it in the local hard disk.
//store the path to the location where the file is stored and pass it as parameter to the method
$sql = "select filename,data,filesize from wordtemplates where templateid=".$templateid;
@@ -40,10 +45,6 @@
$filesize=$temparray['filesize'];
$wordtemplatedownloadpath =$root_directory ."/test/wordtemplatedownload/";
-if($templateid == "")
-{
- die("Select Mail Merge Template");
-}
$handle = fopen($wordtemplatedownloadpath .$temparray['filename'],"wb");
fwrite($handle,base64_decode($fileContent),$filesize);
fclose($handle);
More information about the vtigercrm-commits
mailing list