diff --git a/core/model/DatabaseAdmin.php b/core/model/DatabaseAdmin.php index b5deec239..859884730 100644 --- a/core/model/DatabaseAdmin.php +++ b/core/model/DatabaseAdmin.php @@ -284,7 +284,7 @@ class DatabaseAdmin extends Controller { $id = $record['ID']; if(($record['ClassName'] != $subclass) && (!is_subclass_of($record['ClassName'], $subclass)) && - ($recordExists[$subclass][$id])) { + (isset($recordExists[$subclass][$id]))) { $sql = "DELETE FROM \"$subclass\" WHERE \"ID\" = $record[ID]"; echo "
  • $sql"; DB::query($sql);