mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-07 00:26:52 +01:00
(Fixes issue 1868)
This commit is contained in:
@@ -67,11 +67,9 @@ class CDbLogRoute extends CLogRoute
|
||||
{
|
||||
parent::init();
|
||||
|
||||
$db=$this->getDbConnection();
|
||||
$db->setActive(true);
|
||||
|
||||
if($this->autoCreateLogTable)
|
||||
{
|
||||
$db=$this->getDbConnection();
|
||||
$sql="DELETE FROM {$this->logTableName} WHERE 0=1";
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user