Author: Jonathan.Wage
Date: 2010-01-31 18:48:03 +0100 (Sun, 31 Jan 2010)
New Revision: 27363

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalPluginManagerPlugin/lib/model/doctrine/PluginsfSympalPlugin.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing issue with situation where plugin has no 
author


Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalPluginManagerPlugin/lib/model/doctrine/PluginsfSympalPlugin.class.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalPluginManagerPlugin/lib/model/doctrine/PluginsfSympalPlugin.class.php
      2010-01-31 17:34:48 UTC (rev 27362)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalPluginManagerPlugin/lib/model/doctrine/PluginsfSympalPlugin.class.php
      2010-01-31 17:48:03 UTC (rev 27363)
@@ -24,12 +24,18 @@
 
   public function getAuthorName()
   {
-    return $this->getAuthor()->getName();
+    if  ($author = $this->getAuthor())
+    {
+      return $author->getName();
+    }
   }
 
   public function getAuthorEmail()
   {
-    return $this->getAuthor()->getEmail();
+    if  ($author = $this->getAuthor())
+    {
+      return $author->getEmail();
+    }
   }
 
   public function isDownloaded()

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to