[Vtigercrm-commits] [vtiger-commits] r10816 - /vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 30 04:44:03 EDT 2007


Author: saraj
Date: Mon Apr 30 02:43:59 2007
New Revision: 10816

Log:
added check for iconv function

Modified:
    vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php

Modified: vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php (original)
+++ vtigercrm/branches/5.0.3/modules/Settings/EditInventoryNotification.php Mon Apr 30 02:43:59 2007
@@ -31,7 +31,7 @@
 	{
 		$label = $mod_strings[$adb->query_result($result,0,'notificationname')];
 		$notification_subject = $adb->query_result($result,0,'notificationsubject');
-		$notification_body = iconv("UTF-8",$default_charset,$adb->query_result($result,0,'notificationbody'));
+		$notification_body = function_exists(iconv) ? iconv("UTF-8",$default_charset,$adb->query_result($result,0,'notificationbody')) : $adb->query_result($result,0,'notificationbody');
 		$notification_id = $adb->query_result($result,0,'notificationid');
 
 		$notification = Array();





More information about the vtigercrm-commits mailing list