From e47bf042a8320213c074a4334efef937a5bad324 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 20 Apr 2014 13:15:37 +0000 Subject: [PATCH] --- lam/lib/types.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lam/lib/types.inc b/lam/lib/types.inc index e935150a..86d45600 100644 --- a/lam/lib/types.inc +++ b/lam/lib/types.inc @@ -58,11 +58,13 @@ function getTypes() { $dir = dir($dirname); $return = array(); // get type names. - while ($entry = $dir->read()) + while ($entry = $dir->read()) { if ((substr($entry, strlen($entry) - 4, 4) == '.inc') && is_file($dirname . '/'.$entry)) { $entry = substr($entry, 0, strpos($entry, '.')); $return[] = $entry; } + } + $dir->close(); return $return; }