[pLog-svn] r998 - plog/trunk/class/action

ork at devel.plogworld.net ork at devel.plogworld.net
Tue Feb 8 14:49:32 GMT 2005


Author: ork
Date: 2005-02-08 14:49:32 +0000 (Tue, 08 Feb 2005)
New Revision: 998

Modified:
   plog/trunk/class/action/defaultaction.class.php
Log:
just set something if neccessary .. added a check for category and user


Modified: plog/trunk/class/action/defaultaction.class.php
===================================================================
--- plog/trunk/class/action/defaultaction.class.php	2005-02-08 14:46:09 UTC (rev 997)
+++ plog/trunk/class/action/defaultaction.class.php	2005-02-08 14:49:32 UTC (rev 998)
@@ -107,7 +107,8 @@
 			}
 			
 			// export the category object in case it is needed
-			$this->_view->setValue( "category", $category );			
+            if( isset($category) )
+                $this->_view->setValue( "category", $category );			
 			
             // if we got a user name instead of a user id, then we
             // should first look up this user in the database and see if
@@ -126,8 +127,9 @@
                 $this->_userId = $user->getId();
             }
 
-		// export the user
-		$this->_view->setValue( "user", $user );
+            // export the user
+            if( isset($user) )
+                $this->_view->setValue( "user", $user );
 			
             $t = new Timestamp();
             $todayTimestamp = $t->getTimestamp();
@@ -204,4 +206,4 @@
             return true;
         }
     }
-?>
\ No newline at end of file
+?>




More information about the pLog-svn mailing list