handling possible PEAR Error when fetching the CAPABILITY

This commit is contained in:
Klaus Leithoff 2011-12-28 08:53:22 +00:00
parent 57869d398d
commit dbade56f3f

View File

@ -1086,7 +1086,7 @@ class Net_IMAPProtocol {
{
$ret = $this->_genericCommand( 'CAPABILITY' );
if(isset( $ret["PARSED"] ) ){
if(!PEAR::isError($ret) && isset( $ret["PARSED"] ) ){
foreach($ret["PARSED"] as $substruct) {
if ($substruct["COMMAND"] == "CAPABILITY") {
$subrv=$substruct["EXT"]["CAPABILITY"];