Update sendyLibrary.php

Fixed Bug with case statements