Skip to content

Commit

Permalink
Misc. thingys
Browse files Browse the repository at this point in the history
  • Loading branch information
pudge committed Sep 16, 2008
1 parent f08c55b commit df568b5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions plugins/FireHose/FireHose.pm
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ sub updateItemFromStory {
$data->{offmainpage} = "no";
$data->{offmainpage} = "yes" if defined $story->{offmainpage} && $story->{offmainpage};

if(defined $story->{mediatype}) {
if(!$story->{mediatype}) {
if (defined $story->{mediatype}) {
if (!$story->{mediatype}) {
$data->{mediatype} = "none";
} else {
$data->{mediatype} = $story->{mediatype};
Expand Down Expand Up @@ -510,8 +510,8 @@ sub createItemFromStory {
$data->{offmainpage} = "no";
$data->{offmainpage} = "yes" if defined $story->{offmainpage} && $story->{offmainpage};

if(defined $story->{mediatype}) {
if(!$story->{mediatype}) {
if (defined $story->{mediatype}) {
if (!$story->{mediatype}) {
$data->{mediatype} = "none";
} else {
$data->{mediatype} = $story->{mediatype};
Expand Down Expand Up @@ -585,7 +585,6 @@ sub getFireHoseEssentials {
$opts{dayduration} = $options->{duration};
}


$opts{records_max} = $fetch_size unless $options->{nolimit};
$opts{records_start} = $options->{offset} if $options->{offset};
$opts{sort} = 3; # sorting handled by caller
Expand Down

0 comments on commit df568b5

Please sign in to comment.