php - CakePHP error query with integer -
i state new cakephp, moved site made cakephp on new server, using postgres database (version 8.4 on old server, new server 9.4), problem new server can not logging in plugin auth.
this code, can not understand why:
if(isset($this->data) && !isset($this->data['user']['username_owner']) && isset($this->data['user']['guest_access_key'])) { $dbuser = $this->user->find('all', array( 'conditions' => array( 'user.guest_access_key' => $this->data['user']['guest_access_key'], 'user.valid_to >=' => date("d-m-y"), 'user.active'=> 1, 'user.list_type_id' => 1 ) )); //ecc..
if go debug, find in query changes me last state
'user.list_type_id'=>1
the query shown thus:
user.list_type_id = '\x31'
why?
Comments
Post a Comment