Merge branch 'main' of git.owlcode.tech:sergiotarxz/burguillos.info
This commit is contained in:
commit
edb47331f0
@ -47,10 +47,6 @@ sub get_next ( $self, $current_ad_number = undef ) {
|
||||
if ( !defined $current_ad_number ) {
|
||||
$current_ad_number = 0;
|
||||
}
|
||||
my $ad = $array->[$current_ad_number];
|
||||
if ( !$ad->is_active ) {
|
||||
return $self->get_next( $self->_get_next_number($current_ad_number) );
|
||||
}
|
||||
my $ad = $self->get_rand_ad($array);
|
||||
$ad->regenerate_alternative;
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user