From de86f6dc8491c90c783b854483f0f7a8b4f9bb8a Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sat, 21 Feb 2015 16:09:30 +0800 Subject: [PATCH] Bug fix --- Controllers/SimfileController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Controllers/SimfileController.php b/Controllers/SimfileController.php index 5842bbf..f3689f7 100644 --- a/Controllers/SimfileController.php +++ b/Controllers/SimfileController.php @@ -196,7 +196,6 @@ class SimfileController implements IDivineController $pack = $zipParser->pack(); $packBanner = $pack->getBanner() ? $this->_fileRepository->save($pack->getBanner()) : null; $this->_packRepository->save($pack); - $this->_cacheUpdater->insert($pack); } foreach($zipParser->simfiles() as $simfile) @@ -207,6 +206,8 @@ class SimfileController implements IDivineController if(isset($pack)) $simfile->addToPack($pack); $this->_simfileRepository->save($simfile); } + + if(isset($pack)) $this->_cacheUpdater->insert($pack); } private function findAndAddSmoMirror(IFile $file) -- 2.11.0