summaryrefslogtreecommitdiff
path: root/framework/Util/TLogRouter.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-01 07:46:44 +0000
committerctrlaltca@gmail.com <>2011-06-01 07:46:44 +0000
commit87eb3b2a773c74b0c798ee6c3ecebeb972e88c71 (patch)
tree574468c37176af5b39c3573ec2355b17471aa10c /framework/Util/TLogRouter.php
parentef1c3727e909fcc26b2ee6f7517d458f41ca8ef4 (diff)
backport r2937 to branch/3.1
Diffstat (limited to 'framework/Util/TLogRouter.php')
-rw-r--r--framework/Util/TLogRouter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index 3c022690..1d6e80b7 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -830,7 +830,7 @@ class TDbLogRoute extends TLogRoute
$db=$this->getDbConnection();
$db->setActive(true);
- $sql='SELECT * FROM '.$this->_logTable.' WHERE 0';
+ $sql='SELECT * FROM '.$this->_logTable.' WHERE 0=1';
try
{
$db->createCommand($sql)->query()->close();