aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acm')
-rw-r--r--phpBB/includes/acm/acm_file.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php
index c5162a36d3..42db254567 100644
--- a/phpBB/includes/acm/acm_file.php
+++ b/phpBB/includes/acm/acm_file.php
@@ -73,7 +73,7 @@ class acm
global $phpEx;
$dir = opendir($this->cache_dir);
- while ($entry = readdir($dir))
+ while (($entry = readdir($dir)) !== false)
{
if (!preg_match('/^(sql_|data_(?!global))/', $entry))
{
@@ -159,7 +159,7 @@ class acm
$regex = '(' . ((is_array($table)) ? implode('|', $table) : $table) . ')';
$dir = opendir($this->cache_dir);
- while ($entry = readdir($dir))
+ while (($entry = readdir($dir)) !== false)
{
if (strpos($entry, 'sql_') !== 0)
{