aboutsummaryrefslogtreecommitdiffstats
path: root/packages/phpservice/phpservice.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/phpservice/phpservice.inc')
-rw-r--r--packages/phpservice/phpservice.inc14
1 files changed, 9 insertions, 5 deletions
diff --git a/packages/phpservice/phpservice.inc b/packages/phpservice/phpservice.inc
index da6ada59..1718981e 100644
--- a/packages/phpservice/phpservice.inc
+++ b/packages/phpservice/phpservice.inc
@@ -121,11 +121,15 @@ function phpservice_sync_package_php()
$tmp .= "\n";
foreach($config['installedpackages']['phpservice']['config'] as $rowhelper) {
-
- $tmp .= "// name: ".$rowhelper['name']." \n";
- $tmp .= "// description: ".$rowhelper['description']." \n\n";
- $tmp .= base64_decode($rowhelper['php']);
- $tmp .= "\n";
+ if ($rowhelper['enabled'] != "false") {
+ $tmp_php = base64_decode($rowhelper['php'];
+ if (strlen($tmp_php) > 0) {
+ $tmp .= "// name: ".$rowhelper['name']." \n";
+ $tmp .= "// description: ".$rowhelper['description']." \n\n";
+ $tmp .= base64_decode($rowhelper['php']);
+ $tmp .= "\n";
+ }
+ }
}