cake2.x fixes

cake2.x corrections, E_STRICT, return empty array for empty $records, ...