* [highgo] Use AND instead of &&
This commit is contained in:
@@ -30,7 +30,7 @@ class groupModel extends model
|
||||
|
||||
$this->lang->error->unique = $this->lang->group->repeat;
|
||||
$this->dao->insert(TABLE_GROUP)->data($group)
|
||||
->check('name', 'unique', "vision = '{$this->config->vision}' && project='{$group->project}'")
|
||||
->check('name', 'unique', "vision = '{$this->config->vision}' and project='{$group->project}'")
|
||||
->exec();
|
||||
if(dao::isError()) return false;
|
||||
|
||||
@@ -78,7 +78,7 @@ class groupModel extends model
|
||||
{
|
||||
$this->lang->error->unique = $this->lang->group->repeat;
|
||||
$this->dao->insert(TABLE_GROUP)->data($group)
|
||||
->check('name', 'unique', "vision = '{$this->config->vision}' && project = '{$group->project}'")
|
||||
->check('name', 'unique', "vision = '{$this->config->vision}' and project = '{$group->project}'")
|
||||
->exec();
|
||||
if(dao::isError()) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user