aboutsummaryrefslogtreecommitdiffstats
path: root/Module.pm
diff options
context:
space:
mode:
authorMatteo Pasotti <matteo.pasotti@gmail.com>2014-01-19 01:11:21 +0100
committerMatteo Pasotti <matteo.pasotti@gmail.com>2014-01-19 01:11:21 +0100
commit97d9107d09e7112c012bd3637e30e0821b5f6885 (patch)
treea6591e00c239b8324aeab92a0169a1f8143c70ef /Module.pm
parent03509ca6ac225c921d5f15479198908eac6df605 (diff)
parent8be4c570361e4df7a3e319e9b9bd029d7520fb7b (diff)
downloadmanatools-97d9107d09e7112c012bd3637e30e0821b5f6885.tar
manatools-97d9107d09e7112c012bd3637e30e0821b5f6885.tar.gz
manatools-97d9107d09e7112c012bd3637e30e0821b5f6885.tar.bz2
manatools-97d9107d09e7112c012bd3637e30e0821b5f6885.tar.xz
manatools-97d9107d09e7112c012bd3637e30e0821b5f6885.zip
Merge branch 'master' of ssh://git.mageia.org/software/adminpanel
Diffstat (limited to 'Module.pm')
-rw-r--r--Module.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Module.pm b/Module.pm
index a8803fcb..48eb5bdc 100644
--- a/Module.pm
+++ b/Module.pm
@@ -108,9 +108,11 @@ sub removeButton {
sub start {
my $self = shift;
- my $err = yui::YUI::app()->runInTerminal( $self->{launch} . " --ncurses");
- if ($err == -1) {
- system($self->{launch});
+ if ($self->{launch}) {
+ my $err = yui::YUI::app()->runInTerminal( $self->{launch} . " --ncurses");
+ if ($err == -1) {
+ system($self->{launch});
+ }
}
}