diff --git a/provision_apache.module b/provision_apache.module
index 19a024f28035d69555f4cabf77fd9d2b1ca69d7e..5349c015b530346c3ea7d8c21fdd799f32535b3c 100644
--- a/provision_apache.module
+++ b/provision_apache.module
@@ -106,8 +106,8 @@ function _provision_apache_restart_apache() {
   # This is required to be configurable, due to the fact that different hosts might need to do this differently.
   # TODO : add configuration / test for this
   $apache_restart_cmd = escapeshellcmd(variable_get('provision_apache_restart_cmd', 'sudo apachectl graceful'));
-  $code = drush_shell_exec(escapeshellcmd($apache_restart_cmd));
-  if ($code) {
+  $return = drush_shell_exec(escapeshellcmd($apache_restart_cmd));
+  if (!$return) {
     provision_set_error(PROVISION_WEB_ERROR);
     provision_log("error", "Web server could not be restarted. Changes might not be available until this has been done.");
   }