1 |
vip-ire |
1.1 |
diff -Nur smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm |
2 |
|
|
--- smeserver-shared-folders-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2011-11-30 13:07:47.000000000 +0100 |
3 |
|
|
+++ smeserver-shared-folders-0.1_mod/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/shares.pm 2011-11-30 13:09:02.000000000 +0100 |
4 |
|
|
@@ -321,9 +321,13 @@ |
5 |
|
|
if (($ajaxplorer->prop('status') || 'disabled') eq 'enabled'){ |
6 |
|
|
print_section_bar(); |
7 |
|
|
my ($enabled,$disabled) = ('',''); |
8 |
|
|
- my $share = $self->{cgi}->param('name') || ''; |
9 |
|
|
- if (($share ne '') && ($accountdb->get($share)->prop('Ajaxplorer') || 'disabled') eq 'enabled'){ |
10 |
|
|
- $enabled = ' SELECTED'; |
11 |
|
|
+ my $sharename = $self->{cgi}->param('name') || ''; |
12 |
|
|
+ my $share = $accountdb->get($sharename); |
13 |
|
|
+ # If share exists and Ajxplorer is enabled |
14 |
|
|
+ if ($share){ |
15 |
|
|
+ if (($share->prop('Ajaxplorer') || 'disabled') eq 'enabled'){ |
16 |
|
|
+ $enabled = ' SELECTED'; |
17 |
|
|
+ } |
18 |
|
|
} |
19 |
|
|
else { |
20 |
|
|
$disabled = ' SELECTED'; |