1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-25 02:51:35 +02:00

[ticket/10875] Must return query result on failure.

PHPBB3-10875
This commit is contained in:
Oleg Pudeyev
2012-11-30 12:11:52 -05:00
parent 3eb15ab59e
commit 1ebc6eb68b

View File

@@ -294,7 +294,7 @@ abstract class phpbb_cache_driver_memory extends phpbb_cache_driver_base
if (!preg_match('/FROM \\(?(`?\\w+`?(?: \\w+)?(?:, ?`?\\w+`?(?: \\w+)?)*)\\)?/', $query, $regs))
{
// Bail out if the match fails.
return;
return $query_result;
}
$tables = array_map('trim', explode(',', $regs[1]));