aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Command/InstallCommand.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/InstallCommand.php')
-rw-r--r--src/Wallabag/CoreBundle/Command/InstallCommand.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php
index 2d73a9ad..7c3d1c52 100644
--- a/src/Wallabag/CoreBundle/Command/InstallCommand.php
+++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php
@@ -74,10 +74,9 @@ class InstallCommand extends ContainerAwareCommand
74 $fulfilled = true; 74 $fulfilled = true;
75 75
76 $label = '<comment>PDO Drivers</comment>'; 76 $label = '<comment>PDO Drivers</comment>';
77 if (extension_loaded('pdo_sqlite') || extension_loaded('pdo_mysql') || extension_loaded('pdo_pgsql')) { 77 $status = '<info>OK!</info>';
78 $status = '<info>OK!</info>'; 78 $help = '';
79 $help = ''; 79 if (!(extension_loaded('pdo_sqlite') || extension_loaded('pdo_mysql') || extension_loaded('pdo_pgsql'))) {
80 } else {
81 $fulfilled = false; 80 $fulfilled = false;
82 $status = '<error>ERROR!</error>'; 81 $status = '<error>ERROR!</error>';
83 $help = 'Needs one of sqlite, mysql or pgsql PDO drivers'; 82 $help = 'Needs one of sqlite, mysql or pgsql PDO drivers';
@@ -88,11 +87,10 @@ class InstallCommand extends ContainerAwareCommand
88 87
89 foreach ($this->functionExists as $functionRequired) { 88 foreach ($this->functionExists as $functionRequired) {
90 $label = '<comment>'.$functionRequired.'</comment>'; 89 $label = '<comment>'.$functionRequired.'</comment>';
90 $status = '<info>OK!</info>';
91 $help = '';
91 92
92 if (function_exists($functionRequired)) { 93 if (!function_exists($functionRequired)) {
93 $status = '<info>OK!</info>';
94 $help = '';
95 } else {
96 $fulfilled = false; 94 $fulfilled = false;
97 $status = '<error>ERROR!</error>'; 95 $status = '<error>ERROR!</error>';
98 $help = 'You need the '.$functionRequired.' function activated'; 96 $help = 'You need the '.$functionRequired.' function activated';