MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
Bug in admin-pages-download
AuthorText
Zion
Junior Member
Avatar

Posts: 27
Contributes: 29

Gender: _MALE_
Online: No
Date: 07/08/2008 07:34
Bug in admin-pages-download
#post10965
Hi,
I don't know if everyone has this bug, but i thought i'll report it.
I'm using version 3.9.0.
And when i open the admin panel on the page of downloads, all categories shows "0", even when they contain files.
The problem is in line:
code
$num_subs = $dblink->get_num("SELECT id FROM memht_download_categorie WHERE parent=$cid");

and to fix it i changed the line to:
code
$num_subs = $dblink->get_num("SELECT id FROM memht_download WHERE cat=$cid");

Zion.
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1300
Contributes: 537

Gender: _MALE_
Online: No

Version: 3.8.1
Country: Portugal
Languages: Portuguese, Portuguese and little english ^^
Date: 07/08/2008 12:17
Re: Bug in admin-pages-download
#post10975
It´s not a bug, check the code before speaking on bugs.

This count subcategories and not the files.
Delete Edit Quote
 
Zion
Junior Member
Avatar

Posts: 27
Contributes: 29

Gender: _MALE_
Online: No
Date: 07/08/2008 12:30
Re: Bug in admin-pages-download
#post10980
Ok, ok...
didn't noticed there are sub categories.
Sorry... you can delete the post.
Zion.
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo