Update of /cvsroot/phpwebapp/web_app/database
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10685/database
Modified Files:
class.Recordset.php class.PagedRS.php
Log Message:
Index: class.Recordset.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/database/class.Recordset.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** class.Recordset.php 14 Jul 2004 14:45:41 -0000 1.11
--- class.Recordset.php 22 Jul 2004 09:41:25 -0000 1.12
***************
*** 96,100 ****
function Fields()
{
! return $this->contents[$this->pos];
}
--- 96,102 ----
function Fields()
{
! $fields = $this->contents[$this->pos];
! if (!is_array($fields)) $fields = array();
! return $fields;
}
Index: class.PagedRS.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/database/class.PagedRS.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** class.PagedRS.php 16 Jul 2004 07:37:06 -0000 1.11
--- class.PagedRS.php 22 Jul 2004 09:41:25 -0000 1.12
***************
*** 116,120 ****
function getPageVars()
{
- print "getPageVars()"; //debug
$nr_of_pages = ceil($this->nr_of_recs / $this->recs_per_page);
if ($this->current_page>$nr_of_pages) $this->current_page=$nr_of_pages;
--- 116,119 ----
|