From cc99cdff8ff86b3fbe8eb4261bfaddb86fbec3ec Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 19 Oct 2012 07:49:52 -0400
Subject: [PATCH] - Improved cron and ssh user plugins. - Added "touch" function to system.inc.php

---
 server/lib/classes/db_mysql.inc.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/lib/classes/db_mysql.inc.php b/server/lib/classes/db_mysql.inc.php
index 54561c0..d2b4dd6 100644
--- a/server/lib/classes/db_mysql.inc.php
+++ b/server/lib/classes/db_mysql.inc.php
@@ -275,9 +275,9 @@
 
 
 	if($diff_num > 0) {
-		$diffstr = $app->db->quote(serialize($diffrec_full));
+		$diffstr = $this->quote(serialize($diffrec_full));
 		if(isset($_SESSION)) {
-			$username = $app->db->quote($_SESSION['s']['user']['username']);
+			$username = $this->quote($_SESSION['s']['user']['username']);
 		} else {
 			$username = 'admin';
 		}
@@ -287,7 +287,7 @@
 		if($action == 'UPDATE') $action = 'u';
 		if($action == 'DELETE') $action = 'd';
 		$sql = "INSERT INTO sys_datalog (dbtable,dbidx,server_id,action,tstamp,user,data) VALUES ('".$db_table."','$dbidx','$server_id','$action','".time()."','$username','$diffstr')";
-		$app->db->query($sql);
+		$this->query($sql);
 	}
 
       return true;

--
Gitblit v1.9.1