[Hastymail-cvs] SF.net SVN: hastymail:[584] trunk/hastymail2/lib
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2008-10-29 03:53:05
|
Revision: 584 http://hastymail.svn.sourceforge.net/hastymail/?rev=584&view=rev Author: sailfrog Date: 2008-10-29 03:52:55 +0000 (Wed, 29 Oct 2008) Log Message: ----------- warning fixes thanks to James Turner Modified Paths: -------------- trunk/hastymail2/lib/misc_functions.php trunk/hastymail2/lib/smtp_class.php Modified: trunk/hastymail2/lib/misc_functions.php =================================================================== --- trunk/hastymail2/lib/misc_functions.php 2008-10-27 04:51:02 UTC (rev 583) +++ trunk/hastymail2/lib/misc_functions.php 2008-10-29 03:52:55 UTC (rev 584) @@ -136,7 +136,7 @@ /* HTTP headers, XML declaration, doc type */ function set_page_headers() { global $pd; - if (strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== false) { + if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== false) { $declaration = '<?xml version="1.0" encoding="UTF-8"?>'. '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'. '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'; Modified: trunk/hastymail2/lib/smtp_class.php =================================================================== --- trunk/hastymail2/lib/smtp_class.php 2008-10-27 04:51:02 UTC (rev 583) +++ trunk/hastymail2/lib/smtp_class.php 2008-10-29 03:52:55 UTC (rev 584) @@ -170,7 +170,7 @@ $this->supports_auth = $auth_mecs; break; case 'size': // advisary maximum message size - if(is_numeric($line[1][1])) { + if(isset($line[1][1]) && is_numeric($line[1][1])) { $this->max_message_size = $line[1][1]; } break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |