Minahito
minah****@users*****
2006年 9月 14日 (木) 18:34:38 JST
Index: xoops2jp/html/kernel/XCube_Theme.class.php diff -u xoops2jp/html/kernel/XCube_Theme.class.php:1.1.2.2 xoops2jp/html/kernel/XCube_Theme.class.php:1.1.2.3 --- xoops2jp/html/kernel/XCube_Theme.class.php:1.1.2.2 Thu Aug 3 23:48:58 2006 +++ xoops2jp/html/kernel/XCube_Theme.class.php Thu Sep 14 18:34:38 2006 @@ -68,13 +68,13 @@ { if (file_exists($file)) { $this->_mManifesto = parse_ini_file($file, true); - $this->mName = $this->_mManifesto['Manifesto']['Name']; - $this->mDepends = $this->_mManifesto['Manifesto']['Depends']; - $this->mVersion = $this->_mManifesto['Manifesto']['Version']; - $this->mUrl = $this->_mManifesto['Manifesto']['Url']; + $this->mName = isset($this->_mManifesto['Manifesto']['Name']) ? $this->_mManifesto['Manifesto']['Name'] : ""; + $this->mDepends = isset($this->_mManifesto['Manifesto']['Depends']) ? $this->_mManifesto['Manifesto']['Depends'] : ""; + $this->mVersion = isset($this->_mManifesto['Manifesto']['Version']) ? $this->_mManifesto['Manifesto']['Version'] : ""; + $this->mUrl = isset($this->_mManifesto['Manifesto']['Url']) ? $this->_mManifesto['Manifesto']['Url'] : ""; - $this->mRenderSystemName = $this->_mManifesto['Theme']['RenderSystem']; - $this->mAuthor = $this->_mManifesto['Theme']['Author']; + $this->mRenderSystemName = isset($this->_mManifesto['Theme']['RenderSystem']) ? $this->_mManifesto['Theme']['RenderSystem'] : ""; + $this->mAuthor = isset($this->_mManifesto['Theme']['Author']) ? $this->_mManifesto['Theme']['Author'] : ""; if (isset($this->_mManifesto['Theme']['ScreenShot'])) { $this->mScreenShot = $this->_mManifesto['Theme']['ScreenShot']; @@ -84,7 +84,7 @@ $this->mDescription = $this->_mManifesto['Theme']['Description']; } - $this->mFormat = $this->_mManifesto['Theme']['Format']; + $this->mFormat = isset($this->_mManifesto['Theme']['Format']) ? $this->_mManifesto['Theme']['Format'] : ""; return true; }