|
From: Florin C B. <ory...@us...> - 2013-06-16 23:36:58
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4001 Modified Files: mx_announce.php Log Message: Index: mx_announce.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/mx_announce.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mx_announce.php 26 Apr 2013 14:14:33 -0000 1.8 --- mx_announce.php 16 Jun 2013 23:36:55 -0000 1.9 *************** *** 255,263 **** $result = $db->sql_query($sql, $block_cache_time); ! while($row = $db->sql_fetchrow($result)) { $attachments[$row['post_msg_id']][] = $row; } $db->sql_freeresult($result); } else --- 255,264 ---- $result = $db->sql_query($sql, $block_cache_time); ! while($row = $db->sql_fetchfield($result)) { $attachments[$row['post_msg_id']][] = $row; } $db->sql_freeresult($result); + } else *************** *** 281,285 **** //Do do: Do we use row insted of postrow[] to simplify the code ? ! $row =& $rowset[$post_list[$i]]; //Prepare variables $poster_id = $postrow[$i]['user_id']; --- 282,286 ---- //Do do: Do we use row insted of postrow[] to simplify the code ? ! $row = $rowset[$post_list[$i]]; //Prepare variables $poster_id = $postrow[$i]['user_id']; *************** *** 574,578 **** } unset($rowset[$post_list[$i]]); ! unset($attachments[$row['post_id']]) } unset($rowset, $postrow); --- 575,579 ---- } unset($rowset[$post_list[$i]]); ! unset($attachments[$row['post_id']]); } unset($rowset, $postrow); |