1
This commit is contained in:
+1
-1
@@ -168,7 +168,7 @@ class Command extends Component
|
|||||||
{
|
{
|
||||||
$pdo = $this->db->getConnect($this->sql);
|
$pdo = $this->db->getConnect($this->sql);
|
||||||
$result = $pdo->execute($this->sql, $isInsert, $this->params);
|
$result = $pdo->execute($this->sql, $isInsert, $this->params);
|
||||||
if (is_null($hasAutoIncrement) && $result == 0) {
|
if (!is_null($hasAutoIncrement) && $result == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Reference in New Issue
Block a user