Fixing logic error
Fixing logic error

pwerken/cakephp-crud,johanmeiring/crud,deizel/crud,bravo-kernel/crud,FriendsOfCake/crud,FriendsOfCake/crud-json-api,ojengwa/crud,Spriz/crud,davidyell/crud,ankr/crud,dakota/crud,simkimsia/crud,bcrowe/crud