From 47219676f239ec488bccf6b5803f61c202183f1c Mon Sep 17 00:00:00 2001
From: Falko Timme <ft@falkotimme.com>
Date: Wed, 25 Feb 2015 13:21:26 +0100
Subject: [PATCH] - fixed wrong function definition for the encode() function
 in remote.lib.php.

---
 interface/lib/classes/remoting_lib.inc.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php
index d85612b647..0d89c1f1a1 100644
--- a/interface/lib/classes/remoting_lib.inc.php
+++ b/interface/lib/classes/remoting_lib.inc.php
@@ -186,12 +186,11 @@ class remoting_lib extends tform_base {
 	 /**
 	 * Rewrite the record data to be stored in the database
 	 * and check values with regular expressions.
-	 * dummy parameter is only there for compatibility with params of base class
 	 *
 	 * @param record = Datensatz als Array
 	 * @return record
 	 */
-	function encode($record, $dbencode = true, $dummy = '') {
+	function encode($record, $tab = '', $dbencode = true) {
 		$new_record = $this->_encode($record, '', $dbencode, true);
 		if(isset($record['_ispconfig_pw_crypted'])) $new_record['_ispconfig_pw_crypted'] = $record['_ispconfig_pw_crypted']; // this one is not in form definitions!
 
-- 
GitLab