prevent warning in php5.3, refs #51
Merge pull request #52 from dom-mel/master

prevent php5.3 warning, possible fix for #51