[pLog-svn] r3022 - plog/trunk/class/view/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Mar 5 17:44:07 GMT 2006
Author: oscar
Date: 2006-03-05 17:44:07 +0000 (Sun, 05 Mar 2006)
New Revision: 3022
Modified:
plog/trunk/class/view/admin/adminresourceslistview.class.php
Log:
cleaned up a few more notices
Modified: plog/trunk/class/view/admin/adminresourceslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminresourceslistview.class.php 2006-03-05 17:39:06 UTC (rev 3021)
+++ plog/trunk/class/view/admin/adminresourceslistview.class.php 2006-03-05 17:44:07 UTC (rev 3022)
@@ -36,7 +36,9 @@
$this->_albumId = ROOT_ALBUM_ID;
// search terms
- $this->_searchTerms = $params['searchTerms'];
+ $this->_searchTerms = "";
+ if( isset( $params['searchTerms'] ))
+ $this->_searchTerms = $params['searchTerms'];
$this->setSessionValue( "albumId", $this->_albumId );
@@ -56,6 +58,7 @@
$galleryAlbums = new GalleryAlbums();
$galleryResources = new GalleryResources();
+ $numResources = 0;
if( $this->_albumId > ROOT_ALBUM_ID && $this->_page > 0 ) {
$album = $galleryAlbums->getAlbum( $this->_albumId, $this->_blogInfo->getId());
if( !$album || $album == "") {
@@ -78,6 +81,7 @@
}
}
else {
+ $album = null;
// if we're at the root album but search terms, still call GalleryResources::getUserResources
if( $this->_searchTerms ) {
// load the resources matching the given string from *all* albums
More information about the pLog-svn
mailing list