replace NULL with null

Another global search-and-replace update. Here, I've replaced the PHP
keyword 'NULL' with its lowercase version. This is another PEAR code
standards change.

darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
This commit is contained in:
Evan Prodromou
2008-12-23 14:21:29 -05:00
parent edbc0c665c
commit eb2f9c98ac
219 changed files with 2170 additions and 28881 deletions

View File

@@ -42,7 +42,7 @@ class MailerDaemon {
function handle_message($fname='php://stdin') {
list($from, $to, $msg) = $this->parse_message($fname);
if (!$from || !$to || !$msg) {
$this->error(NULL, _('Could not parse message.'));
$this->error(null, _('Could not parse message.'));
}
common_log(LOG_INFO, "Mail from $from to $to: " .substr($msg, 0, 20));
$user = $this->user_from($from);
@@ -74,7 +74,7 @@ class MailerDaemon {
function user_from($from_hdr) {
$froms = mailparse_rfc822_parse_addresses($from_hdr);
if (!$froms) {
return NULL;
return null;
}
$from = $froms[0];
$addr = common_canonical_email($from['address']);
@@ -140,7 +140,7 @@ class MailerDaemon {
'decode_headers' => true,
'decode_bodies' => true));
if (!$parsed) {
return NULL;
return null;
}
$from = $parsed->headers['from'];
@@ -167,7 +167,7 @@ class MailerDaemon {
}
function unsupported_type($type) {
$this->error(NULL, "Unsupported message type: " . $type);
$this->error(null, "Unsupported message type: " . $type);
}
function cleanup_msg($msg) {