[pLog-svn] r7194 - plugins/branches/lifetype-1.2/subscribe

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Sep 12 20:45:02 EDT 2012


Author: jondaley
Date: 2012-09-12 20:45:02 -0400 (Wed, 12 Sep 2012)
New Revision: 7194

Modified:
   plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php
Log:
check to make sure article object exists.  Should fix bug #1679, an apparent conflict with the copyarticle plugin

Modified: plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php
===================================================================
--- plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php	2012-05-31 01:00:28 UTC (rev 7193)
+++ plugins/branches/lifetype-1.2/subscribe/pluginsubscribe.class.php	2012-09-13 00:45:02 UTC (rev 7194)
@@ -19,7 +19,7 @@
                 "sign up for them.";
             $this->author = "Jon Daley";
             $this->locales = Array("en_UK");
-            $this->version = "20110920";
+            $this->version = "20120912";
 			if( $source == "admin" )
 				$this->initAdmin();
 			else
@@ -119,7 +119,7 @@
             switch($eventType){
               case EVENT_POST_POST_ADD:
                 $article = $params["article"];
-                if($article->getStatus() != POST_STATUS_PUBLISHED)
+                if(!$article || $article->getStatus() != POST_STATUS_PUBLISHED)
                     return;
 
                     // don't send notifications for future posts



More information about the pLog-svn mailing list