mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 14:32:18 +00:00
Set Foto to null instead of empty String when Deleted
This commit is contained in:
@@ -276,9 +276,14 @@ class Student extends FHCAPI_Controller
|
||||
$update_person = array();
|
||||
foreach ($array_allowed_props_person as $prop) {
|
||||
$val = $this->input->post($prop);
|
||||
if ($val !== null) {
|
||||
if ($val !== null)
|
||||
{
|
||||
$update_person[$prop] = $val;
|
||||
}
|
||||
if($prop == 'foto' && $val == '')
|
||||
{
|
||||
$update_person[$prop] = null;
|
||||
}
|
||||
}
|
||||
|
||||
$array_allowed_props_student = ['matrikelnr'];
|
||||
|
||||
Reference in New Issue
Block a user