[Vtigercrm-commits] [vtiger-commits] r6313 - /vtigercrm/trunk/modules/Accounts/Merge.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue May 23 01:43:04 EDT 2006


Author: saraj
Date: Mon May 22 23:43:00 2006
New Revision: 6313

Log:
modified for 5.0 beta release

Modified:
    vtigercrm/trunk/modules/Accounts/Merge.php

Modified: vtigercrm/trunk/modules/Accounts/Merge.php
==============================================================================
--- vtigercrm/trunk/modules/Accounts/Merge.php (original)
+++ vtigercrm/trunk/modules/Accounts/Merge.php Mon May 22 23:43:00 2006
@@ -32,6 +32,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;
@@ -44,10 +49,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);





More information about the vtigercrm-commits mailing list