summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/BootosController.php
diff options
context:
space:
mode:
authormichael pereira2011-04-19 12:40:47 +0200
committermichael pereira2011-04-19 12:40:47 +0200
commit3ad2d891e3b9a0e55e9ebdd83eba60d79fc6c154 (patch)
treed921c6febe4c485b45923665ff6b5a536f801fcf /application/modules/user/controllers/BootosController.php
parentTicket #222 - Authors-File hinzugefügt (diff)
downloadpbs2-3ad2d891e3b9a0e55e9ebdd83eba60d79fc6c154.tar.gz
pbs2-3ad2d891e3b9a0e55e9ebdd83eba60d79fc6c154.tar.xz
pbs2-3ad2d891e3b9a0e55e9ebdd83eba60d79fc6c154.zip
minor fixes
Diffstat (limited to 'application/modules/user/controllers/BootosController.php')
-rw-r--r--application/modules/user/controllers/BootosController.php6
1 files changed, 3 insertions, 3 deletions
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');