cvs: pearweb /include pear-database.php

From: Date: Sat, 01 Sep 2001 23:06:18 +0000
Subject: cvs: pearweb /include pear-database.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-738@lists.php.net to get a copy of this message
ssb Sat Sep 1 19:06:18 2001 EDT Modified files: /pearweb/include pear-database.php Log: * send admin mails with one mail() call instead of multiple Index: pearweb/include/pear-database.php diff -u pearweb/include/pear-database.php:1.10 pearweb/include/pear-database.php:1.11 --- pearweb/include/pear-database.php:1.10 Thu Aug 30 09:47:29 2001 +++ pearweb/include/pear-database.php Sat Sep 1 19:06:18 2001 @@ -355,13 +355,8 @@ global $dbh; $admins = $dbh->getCol("SELECT email FROM users WHERE admin = 1"); if (is_array($admins)) { - $oks = 0; - foreach ($admins as $email) { - $oks += mail($email, "PEAR Account Request", $msg, $xhdr); - } - if ($oks == sizeof($admins)) { - return true; - } + $rcpt = implode(", ", $admins); + return mail($rcpt, "PEAR Account Request", $msg, $xhdr); } return false; }

« previous php.pear.cvs (#738) next »