| # | Line 1 | Line 1 | |
|---|---|---|
| 1 | < | <? |
| 1 | > | <?php |
| 2 | ||
| 3 | # | |
| 4 | # i-scream central monitoring system | |
| 5 | < | # http://www.i-scream.org.uk |
| 5 | > | # http://www.i-scream.org |
| 6 | # Copyright (C) 2000-2002 i-scream | |
| 7 | # | |
| 8 | # This program is free software; you can redistribute it and/or | |
| # | Line 34 | Line 34 | function getdirArray($dir='./',$sort='asort') { | |
| 34 | if($fd == TRUE) { | |
| 35 | closedir($fd); | |
| 36 | } | |
| 37 | < | if (is_array($dir_array)) { |
| 37 | > | if (isset($dir_array) && is_array($dir_array)) { |
| 38 | $sort($dir_array); | |
| 39 | $dir_file_count = count($dir_array); | |
| 40 | Return $dir_array; | |
| # | Line 46 | Line 46 | function getdirArray($dir='./',$sort='asort') { | |
| 46 | } | |
| 47 | } | |
| 48 | ||
| 49 | < | ?> |
| 49 | > | ?> |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |