svn: /web/php-master/trunk/scripts/ event-weekly-email
| From: | Philip Olson | Date: | Thu, 10 Mar 2011 02:41:10 +0000 |
| Subject: | svn: /web/php-master/trunk/scripts/ event-weekly-email | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10608@lists.php.net to get a copy of this message | ||
philip Thu, 10 Mar 2011 02:41:10 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309062
Log:
Fixed missing db_connect() fail. Spotted by Dan. And minor textual formatting.
Changed paths:
U web/php-master/trunk/scripts/event-weekly-email
Modified: web/php-master/trunk/scripts/event-weekly-email
===================================================================
--- web/php-master/trunk/scripts/event-weekly-email 2011-03-10 00:23:54 UTC (rev 309061)
+++ web/php-master/trunk/scripts/event-weekly-email 2011-03-10 02:41:10 UTC (rev 309062)
@@ -5,13 +5,15 @@
*/
require dirname(__FILE__) . '/../include/functions.inc';
+db_connect();
+
$query = 'SELECT COUNT(*) FROM phpcal WHERE NOT approved';
$count = db_get_one($query);
if ($count > 0) {
$subject = "Pending unapproved events notice";
- $message = "Greetings PHP Webmasters,\r\n\r\nThere are roughly [$count] unapproved events
awaiting moderation. Please check the queue.\r\n";
+ $message = "Greetings PHP Webmasters,\r\n\r\nThere are roughly [$count] unapproved events
awaiting moderation.\r\n\r\nPlease check the queue.\r\n";
$headers = "From: php-webmaster@lists.php.net";
mail('php-webmaster@lists.php.net', $subject, $message, $headers);