Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, November 12, 2026

Diff for Metafox/db.inc.php between version 1.41 and 1.42

version 1.41, 2007/04/22 21:30:06 version 1.42, 2007/11/01 23:01:40
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/db.inc.php,v 1.40 2007-04-22 15:37:53 nepto Exp $ */  /* $Platon: Metafox/db.inc.php,v 1.41 2007-04-22 21:30:06 rajo Exp $ */
   
 /*  /*
  * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002   * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002
Line 850  function ezin_set_article_counts($articl
Line 850  function ezin_set_article_counts($articl
  * ezin_update_message_count()   * ezin_update_message_count()
  */   */
   
 function ezin_update_message_count($article_id, $direction = 1, $count = 1) /* {{{ */  function ezin_update_message_count($article_id, $direction = 0, $count = -1) /* {{{ */
 {  {
         global $ezin_sys;          global $ezin_sys;
         global $ezin_db_handle;          global $ezin_db_handle;
Line 859  function ezin_update_message_count($arti
Line 859  function ezin_update_message_count($arti
         $direction  = intval($direction);          $direction  = intval($direction);
         $count      = intval($count);          $count      = intval($count);
   
           if ($article_id <= 0) {
                   return false;
           }
   
           if ($direction == 0 && $count < 0) {
                   $count = ezin_get_message_count($article_id);
           }
   
         $query = 'UPDATE '.$ezin_sys['db']['tables']['articles']          $query = 'UPDATE '.$ezin_sys['db']['tables']['articles']
                 .' SET message_count = '                  .' SET message_count = '
                 . ($direction == 0                  . ($direction == 0

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top