[-] Core: Fix #PSCFV-4212

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17439 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-20 13:57:30 +00:00
parent 060ed4cce1
commit 22bc313e76
+1 -1
View File
@@ -269,7 +269,7 @@ abstract class CacheCore
$this->sql_tables_cached = array();
}
if (preg_match_all('/('._DB_PREFIX_.'[a-z_-]*)`?.*/i', $query, $res))
if (preg_match_all('/(?:from|join|update|into)\s+`?('._DB_PREFIX_.'[a-z_-]+)`?(?:,\s{0,}`?('._DB_PREFIX_.'[a-z_-]+)`?)?\s.*/Umsi', $query, $res))
foreach ($res[1] as $table)
if (isset($this->sql_tables_cached[$table]))
{