From da1a7c0cba1e12ff58ff871b6098905185fa67fc Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 28 Jun 2009 09:10:34 +0000
Subject: [PATCH] Reset action variable to an empty string after update.

---
 server/plugins-available/apache2_plugin.inc.php | 3 +++
 server/plugins-available/cron_plugin.inc.php    | 1 +
 2 files changed, 4 insertions(+)

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index db4266f607..665a8ddcc9 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -749,6 +749,9 @@ class apache2_plugin {
 		// request a httpd reload when all records have been processed
 		$app->services->restartServiceDelayed('httpd','reload');
 		
+		//* Unset action to clean it for next processed vhost.
+		$this->action = '';
+		
 	}
 	
 	function delete($event_name,$data) {
diff --git a/server/plugins-available/cron_plugin.inc.php b/server/plugins-available/cron_plugin.inc.php
index 923d8b579e..233f2d24d6 100644
--- a/server/plugins-available/cron_plugin.inc.php
+++ b/server/plugins-available/cron_plugin.inc.php
@@ -141,6 +141,7 @@ class cron_plugin {
         $this->parent_domain = $parent_domain;
 		$this->_write_crontab();
 		
+		$this->action = '';
         
 	}
 	
-- 
GitLab