Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / modules / categories [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
27 Jul 2002 19:56:36postnuke_official/html/modules/categoriespnuserapi.php,1.2,1.3Mike
 sync gary's fixes

Update of /home/cvsroot/postnuke_official/html/modules/categories
In directory ns7.hostnuke.net:/tmp/cvs-serv24664

Modified Files:
	pnuserapi.php 
Log Message:
sync gary's fixes


Index: pnuserapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/categories/pnuserapi.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pnuserapi.php	27 Jul 2002 19:06:07 -0000	1.2
--- pnuserapi.php	27 Jul 2002 19:56:34 -0000	1.3
***************
*** 75,88 ****
      }
      if (!isset($start)) {
!         $start = -1;
      }
!     elseif (!is_int($start)) {
          pnSessionSetVar('errormsg', _MODARGSNUMERIC);
          return false;
      }
      if (!isset($count)) {
!         $count = -1;
      }
!     elseif (!is_int($count)) {
          pnSessionSetVar('errormsg', _MODARGSNUMERIC);
          return false;
--- 75,92 ----
      }
      if (!isset($start)) {
!         $start = 0;
      }
!     elseif (!is_numeric($start)) {
          pnSessionSetVar('errormsg', _MODARGSNUMERIC);
          return false;
+     } else {
+         //The pager starts counting from 1
+         //SelectLimit starts from 0
+         $start--;
      }
      if (!isset($count)) {
!         $count = 10;
      }
!     elseif (!is_numeric($count)) {
          pnSessionSetVar('errormsg', _MODARGSNUMERIC);
          return false;
***************
*** 180,189 ****
                .  " ORDER BY P1.".$categoriescolumn['left'];
  
! // Am i doing something wrong or isn�t SelectLimit working properly?
! //    if (($count > 0) && ($start > 0)) {
! //       $result = $dbconn->SelectLimit($sql, $count, $start);
! //    } else {
         $result = $dbconn->Execute($SQLquery);
! //    }
  
      if($dbconn->ErrorNo() != 0) {
--- 184,192 ----
                .  " ORDER BY P1.".$categoriescolumn['left'];
  
!     if (is_numeric($count) && $count > 0 && is_numeric($start) && $start > -1) {
!        $result = $dbconn->SelectLimit($SQLquery, $count, $start);
!     } else {
         $result = $dbconn->Execute($SQLquery);
!     }
  
      if($dbconn->ErrorNo() != 0) {
***************
*** 211,214 ****
--- 214,218 ----
            ) {
          $result->MoveNext();
+         // FIXME: Move max/min depth into the SQL
          if ((
               (!isset($minimum_depth)) || 


Directory filter : [ all ] / postnuke_official / html / modules / categories [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3