From 8844515ffce4a77b2b22b8915a72c91f925627b7 Mon Sep 17 00:00:00 2001 From: pookey Date: Fri, 9 Feb 2007 23:20:18 +0000 Subject: [PATCH] fixing error in my previous commit --- lib/Doctrine/Cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Cache.php b/lib/Doctrine/Cache.php index 153d3735f..3221305b4 100644 --- a/lib/Doctrine/Cache.php +++ b/lib/Doctrine/Cache.php @@ -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());