[Vtigercrm-commits] [vtiger-commits] r7894 - /vtigercrm/trunk/modules/Users/UsersAjax.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Jul 7 09:35:06 EDT 2006
Author: richie
Date: Fri Jul 7 07:35:02 2006
New Revision: 7894
Log:
table name changed from announcements to vtiger_announcement
Modified:
vtigercrm/trunk/modules/Users/UsersAjax.php
Modified: vtigercrm/trunk/modules/Users/UsersAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Users/UsersAjax.php (original)
+++ vtigercrm/trunk/modules/Users/UsersAjax.php Fri Jul 7 07:35:02 2006
@@ -41,9 +41,9 @@
$sql="select * from vtiger_announcement where creatorid=".$current_user->id;
$is_announce=$adb->query($sql);
if($adb->num_rows($is_announce) > 0)
- $query="update vtiger_announcement set announcement=".$adb->formatString("announcement","announcement",$announcement).",time=".$adb->formatString("announcement","time",$date_var).",title='announcement' where creatorid=".$current_user->id;
+ $query="update vtiger_announcement set announcement=".$adb->formatString("vtiger_announcement","announcement",$announcement).",time=".$adb->formatString("vtiger_announcement","time",$date_var).",title='announcement' where creatorid=".$current_user->id;
else
- $query="insert into vtiger_announcement values (".$current_user->id.",".$adb->formatString("announcement","announcement",$announcement).",'announcement','".$date_var."')";
+ $query="insert into vtiger_announcement values (".$current_user->id.",".$adb->formatString("vtiger_announcement","announcement",$announcement).",'announcement','".$date_var."')";
$result=$adb->query($query);
echo $announcement;
}
More information about the vtigercrm-commits
mailing list