phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/inc class.nextmatch_widget.inc.php,1.3


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.nextmatch_widget.inc.php,1.3,1.4
Date: Sun, 22 Sep 2002 14:10:08 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv4914

Modified Files:
        class.nextmatch_widget.inc.php 
Log Message:
fix to jump back to the start, if search returns less items than acutal 
position is

Index: class.nextmatch_widget.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.nextmatch_widget.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** class.nextmatch_widget.inc.php      22 Sep 2002 09:30:29 -0000      1.3
--- class.nextmatch_widget.inc.php      22 Sep 2002 18:10:06 -0000      1.4
***************
*** 41,44 ****
--- 41,49 ----
                        {
                                $value['rows'] = 
ExecMethod($value['get_rows'],$value);
+                               if ($value['start'] > $value['rows'][0])
+                               {
+                                       $value['start'] = 0;
+                                       $value['rows'] = 
ExecMethod($value['get_rows'],$value);
+                               }
                                
$GLOBALS['phpgw_info']['etemplate']['extension_data']['nextmatch_widget'][$cell['name']]['total']
 = $value['rows'][0];
                        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]