Fixed two bugs which made 2 functions unusable.
Fixed two bugs which made 2 functions unusable.

moritz/otrs,eliasp/otrs,StCyr/otrs,mbeijen/otrs-1,eliasp/otrs,brandonshults01/otrs,capeit-tto/otrs,nilei/otrs,linearregression/otrs,brandonshults01/otrs,balazj/otrs,brandonshults01/otrs,muehlbauer/otrs,oiami/otrs,vlascoder/otrs,balazj/otrs,noritnk/otrs,moritz/otrs,StCyr/otrs,oiami/otrs,MBRG/otrs,brandonshults01/otrs,rudy500/otrs,balazj/otrs,oiami/otrs,mburggraf/otrs,nilei/otrs,nilei/otrs,balazj/otrs,thorsteneckel/otrs,PortgasDAce/otrs,PortgasDAce/otrs,mbeijen/otrs-1,thorsteneckel/otrs,vlascoder/otrs,linearregression/otrs,xhoy/otrs,rudy500/otrs,muehlbauer/otrs,rudy500/otrs,muehlbauer/otrs,thorsteneckel/otrs,xhoy/otrs,muehlbauer/otrs,eliasp/otrs,MBRG/otrs,moritz/otrs,noritnk/otrs,mburggraf/otrs,PortgasDAce/otrs,oiami/otrs,eliasp/otrs,moritz/otrs,eliasp/otrs,s7design/otrs,PortgasDAce/otrs,thorsteneckel/otrs,rudy500/otrs,balazj/otrs,PortgasDAce/otrs,thorsteneckel/otrs,MBRG/otrs,StCyr/otrs,brandonshults01/otrs,crythias/otrs,mburggraf/otrs,linearregression/otrs,crythias/otrs,s7design/otrs,noritnk/otrs,xhoy/otrs,s7design/otrs,MBRG/otrs,s7design/otrs,moritz/otrs,capeit-tto/otrs,vlascoder/otrs,xhoy/otrs,xhoy/otrs,mburggraf/otrs,linearregression/otrs,StCyr/otrs,mbeijen/otrs-1,muehlbauer/otrs,nilei/otrs,MBRG/otrs,crythias/otrs,s7design/otrs,oiami/otrs,nilei/otrs,crythias/otrs,rudy500/otrs,linearregression/otrs,crythias/otrs,capeit-tto/otrs,mburggraf/otrs,StCyr/otrs