1
0
mirror of synced 2024-12-13 22:56:04 +03:00

fixing error in my previous commit

This commit is contained in:
pookey 2007-02-09 23:20:18 +00:00
parent e1e97313a2
commit 8844515ffc

View File

@ -294,7 +294,7 @@ class Doctrine_Cache extends Doctrine_Db_EventListener implements Countable, Ite
$data = false;
// only process SELECT statements
if (substr(strtoupper(trim($query), 0, 6)) == 'SELECT') {
if (strtoupper(substr(ltrim($query), 0, 6)) == 'SELECT') {
$this->add($query, $event->getInvoker()->getName());
@ -365,7 +365,7 @@ class Doctrine_Cache extends Doctrine_Db_EventListener implements Countable, Ite
$data = false;
// only process SELECT statements
if (substr(strtoupper(trim($query), 0, 6)) == 'SELECT') {
if (strtoupper(substr(ltrim($query), 0, 6)) == 'SELECT') {
$this->add($query, $event->getInvoker()->getDbh()->getName());