[pLog-svn] r502 - plog/trunk/class/view/admin
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed Dec 15 14:34:06 GMT 2004
Author: oscar
Date: 2004-12-15 14:34:05 +0000 (Wed, 15 Dec 2004)
New Revision: 502
Modified:
plog/trunk/class/view/admin/adminresourceslistview.class.php
Log:
fixed a bug, the view wasn't showing any album at all the first time it was being browserd right after logging in
Modified: plog/trunk/class/view/admin/adminresourceslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminresourceslistview.class.php 2004-12-14 22:50:29 UTC (rev 501)
+++ plog/trunk/class/view/admin/adminresourceslistview.class.php 2004-12-15 14:34:05 UTC (rev 502)
@@ -19,8 +19,12 @@
// fetch and save the albumId parameter in the request, if not available as a
// constructor parameter
$this->_albumId = $params["albumId"];
+ if( $this->_albumId == "" )
+ $this->_albumId = $this->getSessionValue( "albumId", ROOT_ALBUM_ID );
+
+ // in case we didn't get any album id at all!
if( $this->_albumId == "" )
- $this->_albumId = $this->getSessionValue( "albumId", ROOT_ALBUM_ID );
+ $this->_albumId = ROOT_ALBUM_ID;
$this->setSessionValue( "albumId", $this->_albumId );
}
More information about the pLog-svn
mailing list