[21026] Improvement: fetchmode assoc 4686:4746
Sigurd Nes <[email protected]> Sun, 07 Feb 2010 10:45:18 +0000
| Newsgroups | gmane.comp.web.phpgroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
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)
{