Login

Who's Online

We have 1 guest online

Google








Home arrow Programmingarrow Joomla Extensionsarrow Bugfix: order==author
Discussion Forum
January 09, 2009, 03:49:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Bugfix: order==author  (Read 768 times)
akame
Newbie
*
Posts: 2


View Profile Email
« on: August 24, 2007, 11:55:39 AM »

Hi!

Firstly, thanks for writing this component. As you can see, there was a need for it. I'm modifying it a little for our needs and have come across a bug if the table prefix is not jos_ (e.g. mine is mos_ from Mambo days).

File: jombib.php
Line: 506
Old:
Code:
$database->setQuery("SELECT COUNT(#__bib.authorid) from #__bib left join #__bib_auth on #__bib.authorid=#__bib_auth.id left join jos_bib_categories on jos_bib.authorid=jos_bib_categories.id ".$andfilter);
New:
Code:
$database->setQuery("SELECT COUNT(#__bib.authorid) from #__bib left join #__bib_auth on #__bib.authorid=#__bib_auth.id left join #__bib_categories on #__bib.authorid=#__bib_categories.id ".$andfilter);

and Line: 562
Old:
Code:
$database->setQuery("select #__bib.*,#__bib_auth.last from #__bib left join #__bib_auth on #__bib.authorid=#__bib_auth.id left join jos_bib_categories on jos_bib.authorid=jos_bib_categories.id ".$andfilter." order by ".$orderby, $limitstart, $limit );
New:
Code:
$database->setQuery("select #__bib.*,#__bib_auth.last from #__bib left join #__bib_auth on #__bib.authorid=#__bib_auth.id left join #__bib_categories on #__bib.authorid=#__bib_categories.id ".$andfilter." order by ".$orderby, $limitstart, $limit );

Thanks again,

akame
Logged
Mark Austin
Administrator
Full Member
*****
Posts: 101



View Profile Email
« Reply #1 on: August 28, 2007, 12:55:41 PM »

Thanks for spotting that, I will fix that before the next release.  Hopefully it has not affected too many users.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
© 2009 Everything That I Know About