summaryrefslogtreecommitdiff
path: root/framework/Util/TLogRouter.php
diff options
context:
space:
mode:
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 e060a85e..725cda41 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -861,7 +861,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();