From: garvinhicking Date: Sun, 29 Jan 2006 13:48:24 +0000 (+0000) Subject: Make the mailer plugin work when called from posting plugins like XMLRPC, popfetchet... X-Git-Tag: 1.0~135 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=617f54d164af43100121da0dace49df6b9781a40;p=s9y.git Make the mailer plugin work when called from posting plugins like XMLRPC, popfetchet etc. --- diff --git a/plugins/serendipity_event_mailer/serendipity_event_mailer.php b/plugins/serendipity_event_mailer/serendipity_event_mailer.php index fdd4069..7edd1f2 100644 --- a/plugins/serendipity_event_mailer/serendipity_event_mailer.php +++ b/plugins/serendipity_event_mailer/serendipity_event_mailer.php @@ -20,7 +20,7 @@ class serendipity_event_mailer extends serendipity_event $propbag->add('description', PLUGIN_EVENT_MAILER_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Sebastian Nohn, Kristian Koehntopp, Garvin Hicking'); - $propbag->add('version', '1.41'); + $propbag->add('version', '1.42'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -103,7 +103,7 @@ class serendipity_event_mailer extends serendipity_event break; case 'backend_publish': - if ($serendipity['POST']['properties']['sendentry'] == false) { + if (isset($serendipity['POST']['properties']) && !isset($serendipity['POST']['properties']['sendentry'])) { echo PLUGIN_EVENT_MAILER_NOTSENDDECISION . '
'; } else { $mails = explode(' ', $this->get_config('mailto'));