[pLog-svn] r3031 - plugins/trunk/smileys

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Mar 5 23:28:19 GMT 2006


Author: oscar
Date: 2006-03-05 23:28:19 +0000 (Sun, 05 Mar 2006)
New Revision: 3031

Modified:
   plugins/trunk/smileys/pluginsmileys.class.php
Log:
removed a notice


Modified: plugins/trunk/smileys/pluginsmileys.class.php
===================================================================
--- plugins/trunk/smileys/pluginsmileys.class.php	2006-03-05 23:09:13 UTC (rev 3030)
+++ plugins/trunk/smileys/pluginsmileys.class.php	2006-03-05 23:28:19 UTC (rev 3031)
@@ -130,15 +130,17 @@
 				$params["article"] = $post;
 			}
 			elseif( $eventType == EVENT_POSTS_LOADED ) {
-				$posts = $params[ "articles" ];
-				$result = Array();
-				if (count($posts) != 0 ){
-					foreach( $posts as $post ) {
-						$post = $this->_smileizePost( $post, $smileySet, $smileys );
-						array_push( $result, $post );
-					}
+			     if( isset( $params["articles"] )) {
+                    $posts = $params[ "articles" ];
+                    $result = Array();
+                    if (count($posts) != 0 ){
+                        foreach( $posts as $post ) {
+                            $post = $this->_smileizePost( $post, $smileySet, $smileys );
+                            array_push( $result, $post );
+                        }
+                    }
+                    $params[ "articles" ] = $result;
 				}
-				$params[ "articles" ] = $result;
 			}
 			
 			//return $params;



More information about the pLog-svn mailing list