[pLog-svn] r3182 - plog/trunk/class/view/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Apr 4 10:03:38 GMT 2006


Author: mark
Date: 2006-04-04 10:03:37 +0000 (Tue, 04 Apr 2006)
New Revision: 3182

Modified:
   plog/trunk/class/view/admin/adminresourceslistview.class.php
Log:
Fix some php notices.

Modified: plog/trunk/class/view/admin/adminresourceslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminresourceslistview.class.php	2006-04-04 10:02:47 UTC (rev 3181)
+++ plog/trunk/class/view/admin/adminresourceslistview.class.php	2006-04-04 10:03:37 UTC (rev 3182)
@@ -27,8 +27,9 @@
 			
 			// fetch and save the albumId parameter in the request, if not available as a
 			// constructor parameter
-			$this->_albumId = $params["albumId"];
-			if( $this->_albumId == "" ) 
+			if( isset( $params["albumId"] ) )
+				$this->_albumId = $params["albumId"];
+			if( empty( $this->_albumId ) ) 
 				$this->_albumId = $this->getSessionValue( "albumId", ROOT_ALBUM_ID );
 
 			// in case we didn't get any album id at all!



More information about the pLog-svn mailing list