Login   Register  
PHP Classes
elePHPant
Icontem

i think there is an error in etobdb class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Email To DB  >  All threads  >  i think there is an error in etobdb class  >  (Un) Subscribe thread alerts  
Subject:i think there is an error in etobdb class
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 class   Reply  
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')