PHP Classes
elePHPant
Icontem

i think there is an error in etobdb class

Recommend this page to a friend!

      PHP Email To DB  >  All threads  >  i think there is an error in etobdb...  >  (Un) Subscribe thread alerts  
Subject:i think there is an error in etobdb...
Summary:function email_headers()
Messages:1
Author:Syed Raza Mehdi
Date:2013-10-23 08:26:14
 

  1. i think there is an error in etobdb...   Reply   Report abuse  
Picture of Syed Raza Mehdi Syed Raza Mehdi - 2013-10-23 08:26:14
#$headers=imap_headers($this->link);
if($this->max_headers == 'max'){
$headers = imap_fetch_overview($this->link, "1:".$this->num_message(), 0);
} else {
$headers = imap_fetch_overview($this->link, "1:$this->max_headers", 0);
}
if($this->max_headers == 'max') {
$num_headers = count($headers);
} else {
$count = count($headers);
if($this->max_headers >= $count){
$num_headers = $count;
} else {
$num_headers = $this->max_headers;
}
}


here it should be if($this->max_headers != 'max')