Small bugfix & EE 2.6+ update

Fixed PHP Uninitialized String Offset notices; updated deprecated
functions for EE2.6+