BIS_fnc_door function uses 'this' as argument for disabled door, even for the rest _structure param is used. This will work in BIS user actions fine because this is passed, however if anyone calls this function themselves with the actual arguments that you should be using, it won't work.
For example using something like
_building = cursorTarget; [_building, 1, 0] call BIS_fnc_door;
won't have this defined there, so it won't work.
Quick fix by just replacing this by _structure