Skip to content

Commit

Permalink
Make a correction to the dynamic_things_counter script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmehc committed Aug 14, 2009
1 parent 1f59d0b commit b95ef09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misc/dynamic_things_counter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function eh ($errno, $errstr)



$directory_name = "../downloads/";
$directory_name = "downloaded_php/downloads/";

$dirs = get_directories ($directory_name);

Expand All @@ -26,7 +26,8 @@ function eh ($errno, $errstr)
foreach ($files as $file)
{
$file_stats = get_file_stats ($file);
if ($file_stats === NULL)
if ($file_stats === NULL
|| ($file_stats[0] == (string)"0" && $file_stats[1] == (string)"0" && $file_stats[2] == (string)"0"))
{
continue;
}
Expand Down

0 comments on commit b95ef09

Please sign in to comment.