IPB

Welcome Guest ( Log In | Register )

[Resolved]Errors When Tag List Empty

This topic is about [Resolved]Errors When Tag List Empty, the author, bramburn, wrote about: Errors when tag list empty ... To read more just scroll down

 
Reply to this topicStart new topic
[Resolved]Errors When Tag List Empty
bramburn
post Mar 27 2008, 08:12 PM
Post #1


Administrator
***

Group: Root Admin
Posts: 905
Joined: 25-June 07
From: London
Member No.: 1



Errors when tag list empty


--------------------
Remember to please use the bug tracker for all bugs and errors, it is more organised that way.
Support in french and english
If I reply in French please excuse my spelling & grammar, i haven't written in french for a long time.
DO NOT PM ME TO ASK ME TO GO ON MSN, post the query on the support forums!
Go to the top of the page
 
+Quote Post
bramburn
post Apr 6 2008, 10:19 AM
Post #2


Administrator
***

Group: Root Admin
Posts: 905
Joined: 25-June 07
From: London
Member No.: 1



here is fix:

find in modules/mod_minerva.php

CODE
while ($row = $this->ipsclass->DB->fetch_row())
        {
            $tags[$row['tag']] = $row['qq'];
            //            $this->html .=  $row['tag'] .'['.$row['qq'].']<br>';
        }

        $this->printTagCloud($tags);


replace:

CODE
    if($this->ipsclass->DB->get_num_rows())
        {
        while ($row = $this->ipsclass->DB->fetch_row())
        {
            $tags[$row['tag']] = $row['qq'];
                    
        }

        $this->printTagCloud($tags);
        }
        else {
            $this->html = '<div align="center" style="margin:30px;font-size:3em">Sorry no Tags found, please add some</div>';
        }


--------------------
Remember to please use the bug tracker for all bugs and errors, it is more organised that way.
Support in french and english
If I reply in French please excuse my spelling & grammar, i haven't written in french for a long time.
DO NOT PM ME TO ASK ME TO GO ON MSN, post the query on the support forums!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet


 



RSS Lo-Fi Version | Sitemap  | SEO by MinervaSEO © Icelabz.net Time is now: 2nd December 2008 - 08:28 PM