Ver código fonte

[ZF-2692]unsafe to examine query type

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15396 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 anos atrás
pai
commit
e97c4577e0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      library/Zend/Db/Profiler.php

+ 1 - 1
library/Zend/Db/Profiler.php

@@ -247,7 +247,7 @@ class Zend_Db_Profiler
 
         // make sure we have a query type
         if (null === $queryType) {
-            switch (strtolower(substr($queryText, 0, 6))) {
+            switch (strtolower(substr(ltrim($queryText), 0, 6))) {
                 case 'insert':
                     $queryType = self::INSERT;
                     break;