From 2e52d882313e7746615d716750c868ebd2a06d57 Mon Sep 17 00:00:00 2001
From: isaack <drericlaufer@gmx.de>
Date: Mon, 24 Aug 2020 10:58:10 +0200
Subject: [PATCH] Bug #40

Bug #40
---
 adminforce/lib/class/bver.class.php |  4 ++--
 adminforce/lib/class/mver.class.php | 16 +++++++++-------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/adminforce/lib/class/bver.class.php b/adminforce/lib/class/bver.class.php
index 102d814..e347ec1 100644
--- a/adminforce/lib/class/bver.class.php
+++ b/adminforce/lib/class/bver.class.php
@@ -19,8 +19,8 @@ class bver{
 	
 	private function make_array($post){
 		foreach($post AS $key => $value){
-			if($key != '' && $key != 'run'){
-				$this->array[$key] = $this->db->escape($value);
+			if($key != '' && $key != 'run' && $value != ''){
+				$this->array[$this->db->escape($key)] = $this->db->escape($value);
 			}
 		}
 	}
diff --git a/adminforce/lib/class/mver.class.php b/adminforce/lib/class/mver.class.php
index 3f571be..771fd2d 100644
--- a/adminforce/lib/class/mver.class.php
+++ b/adminforce/lib/class/mver.class.php
@@ -14,6 +14,14 @@ class mver{
 		$this->db = $datenbank;
 	}
 	
+	private function make_array($post){
+		foreach($post AS $key => $value){
+			if($key != '' && $key != 'run' && $value != ''){
+				$this->array[$key] = $this->db->escape($value);
+			}
+		}
+	}
+	
 	public function set_art($art){
 		if($art == 'user'){ $this->art = M_US; $this->artB = B_US;}
 		if($art == 'admin'){ $this->art = M_AD; $this->artB = B_AD;}
@@ -77,13 +85,7 @@ class mver{
 		}
 	}
 	
-	private function make_array($post){
-		foreach($post AS $key => $value){
-			if($key != '' && $key != 'run' && $value != ''){
-				$this->array[$key] = $this->db->escape($value);
-			}
-		}
-	}
+	
 	
 	public function delete($post){
 		$this->make_array($post);
-- 
GitLab