Changeset 12389

Show
Ignore:
Timestamp:
02/23/09 02:24:25 (1 year ago)
Author:
asha
Message:

Fixed the issue with Recyclebin when Webmails is disabled - Asha

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • vtigercrm/branches/5.1/pkg/vtiger/modules/RecycleBin/modules/RecycleBin/ListView.php

    r12333 r12389  
    3636} 
    3737 
    38 $sql = 'SELECT tabid, name FROM vtiger_tab WHERE presence=0 AND isentitytype=1 AND tabid NOT IN ('. generateQuestionMarks($skip_tab_ids) .') ORDER BY name'; 
     38$sql = 'SELECT tabid, name FROM vtiger_tab WHERE presence=0 AND isentitytype=1 '; 
     39if (count($skip_tab_ids) > 0) { 
     40        $sql .= ' AND tabid NOT IN ('. generateQuestionMarks($skip_tab_ids) .')'; 
     41
     42$sql .= ' ORDER BY name'; 
    3943$result =$adb->pquery($sql, array($skip_tab_ids)); 
    4044$noofrows = $adb->num_rows($result);