mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	do not access $settings before loading it
This commit is contained in:
		
							parent
							
								
									8b558c7142
								
							
						
					
					
						commit
						aa8eb38560
					
				|  | @ -87,10 +87,9 @@ if(isset($options['sections'])) { | |||
| 	$sections = explode(',', $options['sections']); | ||||
| } | ||||
| 
 | ||||
| $folderid = 0; | ||||
| if(isset($options['folder'])) { | ||||
| 	$folderid = intval($options['folder']); | ||||
| } else { | ||||
| 	$folderid = $settings->_rootFolderID; | ||||
| } | ||||
| 
 | ||||
| $skiproot = false; | ||||
|  | @ -464,6 +463,10 @@ include($myincpath."/inc/inc.Init.php"); | |||
| include($myincpath."/inc/inc.Extension.php"); | ||||
| include($myincpath."/inc/inc.DBInit.php"); | ||||
| 
 | ||||
| if(!$folderid) { | ||||
| 	$folderid = $settings->_rootFolderID; | ||||
| } | ||||
| 
 | ||||
| echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; | ||||
| echo "<dms dbversion=\"".implode('.', array_slice($dms->getDBVersion(), 1, 3))."\" date=\"".date('Y-m-d H:i:s')."\">\n"; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann