1// This message has been E_STRICT for PHP <= 5.3. Since PHP 5.4, it was unluckilly changed to E_WARNING. Since E_WARNING messages are useful, you don't want to disable them completely.
2// To get rid of this warning, you must use this code:
3
4if (!isset($res))
5 $res = new stdClass();
6
7$res->success = false;
8
9// this code is from @TMS' answer on the source