Changeset 411
- Timestamp:
- 09/10/08 11:01:37 (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r398 r411 152 152 $msg_folder = $params['msg_folder']; 153 153 154 if(!$this->mbox )154 if(!$this->mbox || !is_resource($this->mbox)) 155 155 $this->mbox = $this->open_mbox($msg_folder); 156 156 … … 926 926 $return['new_msgs'] = imap_num_recent($this->mbox); 927 927 $return['msgs_to_delete'] = $msg_to_delete; 928 if($this->mbox )928 if($this->mbox && is_resource($this->mbox)) 929 929 imap_close($this->mbox); 930 930 return $return; … … 1076 1076 { 1077 1077 $folder = $params['folder']; 1078 if(!$this->mbox ) {1078 if(!$this->mbox || !is_resource($this->mbox)) { 1079 1079 $this->mbox = $this->open_mbox($folder); 1080 if(!$this->mbox )1080 if(!$this->mbox || !is_resource($this->mbox)) 1081 1081 return imap_last_error(); 1082 1082 } 1083 1083 $num_msgs = imap_num_msg($this->mbox); 1084 if($this->mbox )1084 if($this->mbox || is_resource($this->mbox)) 1085 1085 imap_close($this->mbox); 1086 1086 … … 1700 1700 $return["flag"] = $flag; 1701 1701 1702 if(!$this->mbox )1702 if(!$this->mbox && !is_resource($this->mbox)) 1703 1703 $this->mbox = $this->open_mbox($folder); 1704 1704 … … 1718 1718 $return["status"] = imap_clearflag_full($this->mbox, $msgs_to_set, "\\Flagged", ST_UID); 1719 1719 1720 if($this->mbox )1720 if($this->mbox && is_resource($this->mbox)) 1721 1721 imap_close($this->mbox); 1722 1722 return $return; … … 1805 1805 function get_msgs($folder, $sort_box_type, $search_box_type, $sort_box_reverse){ 1806 1806 1807 if(!$this->mbox )1807 if(!$this->mbox || !is_resource($this->mbox)){ 1808 1808 $this->mbox = $this->open_mbox($folder); 1809 1809 } 1810 1810 switch($sort_box_type){ 1811 1811 case 'SORTFROM': … … 1918 1918 $folder_id = "INBOX"; 1919 1919 1920 if(!$this->mbox )1920 if(!$this->mbox || !is_resource($this->mbox)) 1921 1921 $this->mbox = $this->open_mbox(); 1922 1922 1923 1923 $quota = imap_get_quotaroot($this->mbox, $folder_id); 1924 if($this->mbox )1924 if($this->mbox && is_resource($this->mbox)) 1925 1925 imap_close($this->mbox); 1926 1926 -
trunk/phpgwapi/inc/functions.inc.php
r370 r411 450 450 \*************************************************************************/ 451 451 if ($GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' && 452 $GLOBALS['phpgw_info']['flags']['currentapp'] != 'about') 452 $GLOBALS['phpgw_info']['flags']['currentapp'] != 'about' && 453 $GLOBALS['phpgw_info']['flags']['currentapp'] != 'mobile') 453 454 { 454 455 // This will need to use ACL in the future
Note: See TracChangeset
for help on using the changeset viewer.