[Hastymail-cvs] hastymail/lib general.php,1.79,1.80
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2003-02-05 20:28:09
|
Update of /cvsroot/hastymail/hastymail/lib In directory sc8-pr-cvs1:/tmp/cvs-serv29005/lib Modified Files: general.php Log Message: moved the full/small header link, trimmed emtpy lines off the bottom of text messages, and removed some duplicate code. Index: general.php =================================================================== RCS file: /cvsroot/hastymail/hastymail/lib/general.php,v retrieving revision 1.79 retrieving revision 1.80 diff -u -d -r1.79 -r1.80 --- general.php 4 Feb 2003 07:15:34 -0000 1.79 +++ general.php 5 Feb 2003 20:27:59 -0000 1.80 @@ -445,6 +445,12 @@ array_pop($result); } } + else { + while (isset($result[(count($result)-1)]) && + preg_match("/^\s*\n$/", $result[(count($result)-1)])) { + array_pop($result); + } + } $body = "\n".implode("", $result)."\n"; return $body; } |