Skip to content

Commit e867ffa

Browse files
committed
Ensure -R option only applies on directory
1 parent 0015b9a commit e867ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpctags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if(isset($options['recurse'])) {
7979

8080
$ctags = new PHPCtags();
8181
$result = '';
82-
if (isset($options['R'])) {
82+
if (is_dir($file) && isset($options['R'])) {
8383
$iterator = new RecursiveIteratorIterator(
8484
new RecursiveDirectoryIterator(
8585
$file,

0 commit comments

Comments
 (0)