diff --git a/adminforce/lib/class/bver.class.php b/adminforce/lib/class/bver.class.php index 102d81473467cb5d69a792dec7c42118b7756a4e..e347ec19468233b4317c1d223b1d74d22cd6f769 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 3f571be7587f0ec5495285084590e14446f23a0f..771fd2d72c6c8b3fa2a778fabf761891d6febad3 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);