fixing error in my previous commit
This commit is contained in:
parent
e1e97313a2
commit
8844515ffc
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user