|  | @@ 886-890 (lines=5) @@ | 
                                                            
                                    | 883 |  |     $hTicketList  =& xhelpGetHandler('ticketList'); | 
                                                            
                                    | 884 |  |  | 
                                                            
                                    | 885 |  |     //Set Number of items in each section | 
                                                            
                                    | 886 |  |     if ($limit == 0) { | 
                                                            
                                    | 887 |  |         $limit = $xhelpConfig['xhelp_staffTicketCount']; | 
                                                            
                                    | 888 |  |     } elseif ($limit == -1) { | 
                                                            
                                    | 889 |  |         $limit = 0; | 
                                                            
                                    | 890 |  |     } | 
                                                            
                                    | 891 |  |     $uid = $xoopsUser->getVar('uid'); | 
                                                            
                                    | 892 |  |     $depts       =& $hDepartments->getObjects(null, true); | 
                                                            
                                    | 893 |  |     $priority    =& $hTickets->getStaffTickets($uid, XHELP_QRY_STAFF_HIGHPRIORITY, $start, $limit); | 
                                                                                
                                |  | @@ 1038-1042 (lines=5) @@ | 
                                                            
                                    | 1035 |  |     $hTickets     =& xhelpGetHandler('ticket'); | 
                                                            
                                    | 1036 |  |     $hMembership  =& xhelpGetHandler('membership'); | 
                                                            
                                    | 1037 |  |  | 
                                                            
                                    | 1038 |  |     if ($limit == 0) { | 
                                                            
                                    | 1039 |  |         $limit = $xhelpConfig['xhelp_staffTicketCount']; | 
                                                            
                                    | 1040 |  |     } elseif ($limit == -1) { | 
                                                            
                                    | 1041 |  |         $limit = 0; | 
                                                            
                                    | 1042 |  |     } | 
                                                            
                                    | 1043 |  |  | 
                                                            
                                    | 1044 |  |     //Prepare Database Query and Querystring | 
                                                            
                                    | 1045 |  |     $crit     = new CriteriaCompo(new Criteria('uid', $uid, '=', 'j')); |