}
elseif($this->cfg->rows_per_page > 0) {
- if(!$_SESSION['begin_with'] || $_SESSION['begin_with'] == 0)
+ if(!isset($_SESSION['begin_with']) || $_SESSION['begin_with'] == 0) {
$begin_with = 0;
+ }
else {
$begin_with = $_SESSION['begin_with'];
/* do we have to display the page selector ? */
if($this->cfg->rows_per_page != 0) {
+
+ $page_select = "";
/* calculate the page switchers */
$previous_start = $begin_with - ($this->cfg->rows_per_page * $this->cfg->thumbs_per_row);
private function getCurrentTags()
{
$current_tags = "";
- if($_SESSION['selected_tags'] != "") {
+ if(isset($_SESSION['selected_tags']) && $_SESSION['selected_tags'] != "") {
foreach($_SESSION['selected_tags'] as $tag)
$current_tags.= $tag .",";
$current_tags = substr($current_tags, 0, strlen($current_tags)-1);