Project

General

Profile

« Previous | Next » 

Revision 374

Added by Matthias almost 18 years ago

Fixed various php notices (#334)

View differences:

trunk/wb/framework/class.frontend.php
309 309
	}
310 310
	
311 311
	function show_menu() {
312
	   global $database;
313
	   if ($this->menu_start_level>0) {
314
	       $key_array=array_keys($this->page_trail);
315
	       $real_start=$key_array[$this->menu_start_level-1];
316
	       if (isset($real_start)) {
317
	       	$this->menu_parent=$real_start;
318
		$this->menu_start_level=0;
319
	       } else {
320
	       	 return;
321
	       }
322
	   }
312
		global $database;
313
		if ($this->menu_start_level>0) {
314
			$key_array=array_keys($this->page_trail);
315
			if (isset($key_array[$this->menu_start_level-1])) {
316
				$real_start=$key_array[$this->menu_start_level-1];
317
				$this->menu_parent=$real_start;
318
				$this->menu_start_level=0;
319
			} else {
320
				return;
321
			}
322
		}
323 323
	   if ($this->menu_recurse==0)
324 324
	       return;
325 325
	   // Check if we should add menu number check to query

Also available in: Unified diff