Merged changes in main branch up to v.2.1.2
[fa-stable.git] / includes / db / comments_db.inc
index fd7af9c5e6991a6da98fd5be2c032628b07447ab..d431e97d108a2d3f72ff322e65327097749338eb 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 //--------------------------------------------------------------------------------------------------
 
 function get_comments($type, $type_no)
@@ -30,7 +39,7 @@ function update_comments($type, $id, $date_, $memo_)
        if ($date_ == null)
        {
        delete_comments($type, $id);
-       add_comments($type, $id, '', $memo_);
+       add_comments($type, $id, Today(), $memo_);
        }
        else
        {