phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [21026] Improvement: fetchmode assoc 4686:4746


From: Sigurd Nes
Subject: [Phpgroupware-cvs] [21026] Improvement: fetchmode assoc 4686:4746
Date: Sun, 07 Feb 2010 10:45:18 +0000

Revision: 21026
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21026
Author:   sigurdne
Date:     2010-02-07 10:45:18 +0000 (Sun, 07 Feb 2010)
Log Message:
-----------
Improvement: fetchmode assoc 4686:4746

Modified Paths:
--------------
    people/sigurdne/modules/xmlrpc/trunk/discuss.php

Modified: people/sigurdne/modules/xmlrpc/trunk/discuss.php
===================================================================
--- people/sigurdne/modules/xmlrpc/trunk/discuss.php    2010-02-07 10:45:08 UTC 
(rev 21025)
+++ people/sigurdne/modules/xmlrpc/trunk/discuss.php    2010-02-07 10:45:18 UTC 
(rev 21026)
@@ -46,10 +46,10 @@
                $comment = xmlrpc_decode($m->getParam(2));
        
                $countID = "${msgID}_count";
-               $sql = 'SELECT COUNT(msg_id) FROM phpgw_discuss';
+               $sql = 'SELECT COUNT(msg_id) as cnt FROM phpgw_discuss';
                $GLOBALS['phpgw']->db->query($sql,__LINE__,__FILE__);
                $GLOBALS['phpgw']->db->next_record();
-               $count = $GLOBALS['phpgw']->db->f(0);
+               $count = $GLOBALS['phpgw']->db->f('cnt');
                
                if(!$count)
                {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]