Yes I know, bug reports should be entered directly into phpBugTracker, but unfortunately phpBugTracker has a bug itself and gives back '
DB Error: syntax error', so I will report my bug here (hey, nobody will expect me to retype everything again, isn't it ;) )
Problem: Sometimes there are arguments that are empty, eg forms with several buttons submit the information on which button has been pressed by providing the empty variable with the button's name. By using pnVarCleanFromInput(), this information gets lost because it doesn't distinguish between empty and NULL.
Solution: In function pnVarCleanFromInput(), file pnAPI.php, the line saying array_push($resarray, NULL) has to be replaced with array_push($resarray, ''). After this correction, everything works for me.
Caution: Maybe also pnVarPrepFor* have to be checked for this bug!