Skip to content

Commit

Permalink
Fix a number of other small blocker bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Feb 28, 2021
1 parent 27cc2b8 commit d32d934
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dir2cast.php
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ public static function defaults()
define('MIN_FILE_AGE', 30);

// Set up factory settings for Podcast subclasses
Dir_Podcast::$EMPTY_PODCAST_IS_ERROR = !CLI_ONLY;
Dir_Podcast::$EMPTY_PODCAST_IS_ERROR = !defined('CLI_ONLY') || !CLI_ONLY;
Dir_Podcast::$RECURSIVE_DIRECTORY_ITERATOR = RECURSIVE_DIRECTORY_ITERATOR;
Dir_Podcast::$ITEM_COUNT = ITEM_COUNT;
Dir_Podcast::$MIN_FILE_AGE = MIN_FILE_AGE;
Expand Down Expand Up @@ -1912,7 +1912,7 @@ public function output()
$podcast = $this->podcast;
if(!defined('OUTPUT_FILE'))
{
if(!CLI_ONLY)
if(!defined('CLI_ONLY') || !CLI_ONLY)
{
$podcast->http_headers();
}
Expand Down Expand Up @@ -2010,7 +2010,7 @@ function main($args)
if(isset($GLOBALS['argv'])) {
$args = $argv;
}
exit(main($argv));
exit(main($args));
}

/* THE END *********************************************/

0 comments on commit d32d934

Please sign in to comment.