[geeklog-cvs] Geeklog-1.x/public_html/links index.php,1.26,1.27

Dirk Haun dhaun at qs1489.pair.com
Mon Dec 31 08:23:57 EST 2007


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/links
In directory qs1489.pair.com:/tmp/cvs-serv38933/public_html/links

Modified Files:
	index.php 
Log Message:
Fixed 'show_top10' option


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/index.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** index.php	31 Dec 2007 10:41:47 -0000	1.26
--- index.php	31 Dec 2007 13:23:55 -0000	1.27
***************
*** 242,247 ****
      $result = DB_query ($sql . $from_where . $order . $limit);
      $nrows = DB_numRows ($result);
      if ($nrows == 0) {
!         if (empty ($category) && ($page <= 1) && $_LI_CONF['show_top10']) {
              $result = DB_query ("SELECT lid,url,title,description,hits,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['links']} WHERE (hits > 0)" . COM_getPermSQL ('AND') . " ORDER BY hits DESC LIMIT 10");
              $nrows  = DB_numRows ($result);
--- 242,248 ----
      $result = DB_query ($sql . $from_where . $order . $limit);
      $nrows = DB_numRows ($result);
+ COM_errorLog("$nrows, $category, $cid, $page");
      if ($nrows == 0) {
!         if (($cid == $_LI_CONF['root']) && ($page <= 1) && $_LI_CONF['show_top10']) {
              $result = DB_query ("SELECT lid,url,title,description,hits,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['links']} WHERE (hits > 0)" . COM_getPermSQL ('AND') . " ORDER BY hits DESC LIMIT 10");
              $nrows  = DB_numRows ($result);




More information about the geeklog-cvs mailing list