From 3ad2d891e3b9a0e55e9ebdd83eba60d79fc6c154 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Tue, 19 Apr 2011 12:40:47 +0200 Subject: minor fixes --- application/modules/user/controllers/BootosController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'application/modules/user/controllers/BootosController.php') diff --git a/application/modules/user/controllers/BootosController.php b/application/modules/user/controllers/BootosController.php index 511b969..796a2f7 100644 --- a/application/modules/user/controllers/BootosController.php +++ b/application/modules/user/controllers/BootosController.php @@ -171,8 +171,8 @@ class user_BootosController extends Zend_Controller_Action exec("wget -O '".$path_tmp."initramfs".$hash."' ".escapeshellcmd($bootos->getPath_init())." 2>&1 | grep 'saved'", $status2); exec("wget -O '".$path_tmp."config".$hash."' ".escapeshellcmd($bootos->getPath_config())." 2>&1 | grep 'saved'", $status3); - if(!array_pop($status) || !array_pop($status2) || !array_pop($status3)){ - $this->view->bootosForm = $bootosForm; + if(!array_pop($status) && $bootos->getPath_kernel() != null || !array_pop($status2) && $bootos->getPath_init() != null || !array_pop($status3) && $bootos->getPath_config() != null ){ + $this->view->bootosForm = $bootosForm; $pbsNotifier = new Pbs_Notifier(); echo $pbsNotifier->notify('The Resource was not found on the specified path','error'); @@ -358,7 +358,7 @@ class user_BootosController extends Zend_Controller_Action exec("wget -O '".$path_tmp."initramfs".$hash."' ".escapeshellcmd($bootos->getPath_init())." 2>&1 | grep 'saved'", $status2); exec("wget -O '".$path_tmp."config".$hash."' ".escapeshellcmd($bootos->getPath_config())." 2>&1 | grep 'saved'", $status3); - if(!array_pop($status) || !array_pop($status2) || !array_pop($status3)){ + if(!array_pop($status) && $bootos->getPath_kernel() != null || !array_pop($status2) && $bootos->getPath_init() != null || !array_pop($status3) && $bootos->getPath_config() != null ){ $this->view->bootosForm = $bootosForm; $pbsNotifier = new Pbs_Notifier(); echo $pbsNotifier->notify('The Resource was not found on the specified path','error'); -- cgit v1.2.3-55-g7522