diff --git a/pimcore/lib/Pimcore/Resource/Mysql.php b/pimcore/lib/Pimcore/Resource/Mysql.php index 4f7c3f97842..386a4f09470 100644 --- a/pimcore/lib/Pimcore/Resource/Mysql.php +++ b/pimcore/lib/Pimcore/Resource/Mysql.php @@ -60,7 +60,7 @@ public static function getConnection () { Logger::warn($e); } - if(PIMCORE_DEVMODE) { + if(PIMCORE_DEVMODE && !$db->getProfiler()->getEnabled()) { $profiler = new Pimcore_Db_Profiler('All DB Queries'); $profiler->setEnabled(true); $db->setProfiler($profiler);