@@ -252,7 +252,7 @@ public function contribs($mode, $contrib_id = false, $start = false, $limit = fa
252252 WHERE contrib_id = ' . $ row ['contrib_id ' ] . '
253253 AND revision_status = ' . ext::TITANIA_REVISION_APPROVED ;
254254 $ result1 = $ this ->db ->sql_query ($ sql );
255- $ cnt = $ this ->db ->sql_fetchfield ('cnt ' , $ result1 );
255+ $ cnt = $ this ->db ->sql_fetchfield ('cnt ' , false , $ result1 );
256256 $ this ->db ->sql_freeresult ($ result1 );
257257
258258 if (($ cnt > 0 && $ row ['contrib_status ' ] == ext::TITANIA_CONTRIB_NEW ) || ($ cnt == 0 && $ row ['contrib_status ' ] == ext::TITANIA_CONTRIB_APPROVED ))
@@ -631,7 +631,7 @@ public function _get_post_count($topic_id)
631631 AND post_deleted = 0
632632 AND post_approved = 1 ' ;
633633 $ result = $ this ->db ->sql_query ($ sql );
634- $ teams = $ this ->db ->sql_fetchfield ('cnt ' , $ result );
634+ $ teams = $ this ->db ->sql_fetchfield ('cnt ' , false , $ result );
635635 $ this ->db ->sql_freeresult ($ result );
636636
637637 $ sql = 'SELECT COUNT(post_id) AS cnt
@@ -641,7 +641,7 @@ public function _get_post_count($topic_id)
641641 AND post_deleted = 0
642642 AND post_approved = 1 ' ;
643643 $ result = $ this ->db ->sql_query ($ sql );
644- $ authors = $ this ->db ->sql_fetchfield ('cnt ' , $ result );
644+ $ authors = $ this ->db ->sql_fetchfield ('cnt ' , false , $ result );
645645 $ this ->db ->sql_freeresult ($ result );
646646
647647 $ sql = 'SELECT COUNT(post_id) AS cnt
@@ -651,15 +651,15 @@ public function _get_post_count($topic_id)
651651 AND post_deleted = 0
652652 AND post_approved = 1 ' ;
653653 $ result = $ this ->db ->sql_query ($ sql );
654- $ public = $ this ->db ->sql_fetchfield ('cnt ' , $ result );
654+ $ public = $ this ->db ->sql_fetchfield ('cnt ' , false , $ result );
655655 $ this ->db ->sql_freeresult ($ result );
656656
657657 $ sql = 'SELECT COUNT(post_id) AS cnt
658658 FROM ' . $ this ->posts_table . '
659659 WHERE topic_id = ' . (int ) $ topic_id . '
660660 AND post_deleted <> 0 ' ;
661661 $ result = $ this ->db ->sql_query ($ sql );
662- $ deleted = $ this ->db ->sql_fetchfield ('cnt ' , $ result );
662+ $ deleted = $ this ->db ->sql_fetchfield ('cnt ' , false , $ result );
663663 $ this ->db ->sql_freeresult ($ result );
664664
665665 $ sql = 'SELECT COUNT(post_id) AS cnt
@@ -668,7 +668,7 @@ public function _get_post_count($topic_id)
668668 AND post_deleted = 0
669669 AND post_approved = 0 ' ;
670670 $ result = $ this ->db ->sql_query ($ sql );
671- $ unapproved = $ this ->db ->sql_fetchfield ('cnt ' , $ result );
671+ $ unapproved = $ this ->db ->sql_fetchfield ('cnt ' , false , $ result );
672672 $ this ->db ->sql_freeresult ($ result );
673673
674674 return count::to_db (array (
0 commit comments