[pLog-svn] r4073 - plugins/branches/lifetype-1.1/adminnotifier
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Oct 1 20:54:22 GMT 2006
Author: oscar
Date: 2006-10-01 20:54:21 +0000 (Sun, 01 Oct 2006)
New Revision: 4073
Modified:
plugins/branches/lifetype-1.1/adminnotifier/pluginadminnotifier.class.php
Log:
Fixed issue http://bugs.lifetype.net/view.php?id=1075
Modified: plugins/branches/lifetype-1.1/adminnotifier/pluginadminnotifier.class.php
===================================================================
--- plugins/branches/lifetype-1.1/adminnotifier/pluginadminnotifier.class.php 2006-10-01 20:26:43 UTC (rev 4072)
+++ plugins/branches/lifetype-1.1/adminnotifier/pluginadminnotifier.class.php 2006-10-01 20:54:21 UTC (rev 4073)
@@ -57,9 +57,15 @@
$eventName = $eventList[ $eventType ];
// build the message
- $rg = $this->blogInfo->getBlogRequestGenerator();
- $blogLink = $rg->blogLink();
- $blogName = $this->blogInfo->getBlog();
+ if( $this->blogInfo === null ) {
+ $blogName = "(undefined)";
+ $blogLink = "(undefined)";
+ }
+ else {
+ $rg = $this->blogInfo->getBlogRequestGenerator();
+ $blogLink = $rg->blogLink();
+ $blogName = $this->blogInfo->getBlog();
+ }
$t = new Timestamp();
$timestamp = $t->getTimestamp();
$message = "Event: {$eventName}\n
More information about the pLog-svn
mailing list