Commit 2d13b530 authored by Dries's avatar Dries

- added fclose()

parent aeb17a8f
......@@ -144,6 +144,7 @@ function import_refresh($feed) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
......@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
......
......@@ -144,6 +144,7 @@ function import_refresh($feed) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
......@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
......
......@@ -58,6 +58,8 @@ function cloud_update($site) {
if (abs($site[size] - strlen($data)) > 50) {
db_query("UPDATE site SET size = '". strlen($data) ."', timestamp = '". time() ."' WHERE link = '". check_input($site[link]) ."'");
}
fclose($fp);
}
else {
watchdog("warning", "cloud: failed to syndicate from '$site[name]'". ($errstr ? ": $errstr" : ""));
......
......@@ -144,6 +144,7 @@ function import_refresh($feed) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
......@@ -357,6 +358,7 @@ function import_fd_collect($edit) {
while (!feof($fp)) {
$data .= fgets($fp, 128);
}
fclose($fp);
// initialize the translation table:
$tt = array_flip(get_html_translation_table(HTML_ENTITIES));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment