Skip to content

Commit

Permalink
some cal typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
liedekef committed Jul 30, 2023
1 parent 7bd646a commit 630bdaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions eme-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ function eme_template_redir() {
$author = str_replace( '_MYSELF', '#_MYSELF', $author );
$contact_person = str_replace( '_MYSELF', '#_MYSELF', $contact_person );

$event = eme_get_events( limit: 0, scope: $scope, category: $category, author: $author, contact_person: $contact_person, location_id: $location_id, notcategory: $notcategory );
$events = eme_get_events( limit: 0, scope: $scope, category: $category, author: $author, contact_person: $contact_person, location_id: $location_id, notcategory: $notcategory );
if ( count( $events ) == 1 ) {
$event = $events[0];
eme_nocache_headers();
Expand Down Expand Up @@ -4771,12 +4771,12 @@ function eme_get_events( $limit = 0, $scope = 'future', $order = 'ASC', $offset
if ( $limit === '' ) {
$limit = get_option( 'eme_event_list_number_items' );
}
if ( $limit > 0 ) {
$limit_string = "LIMIT $event_limit";
if ( !empty($limit) ) {
$event_limit = intval( $limit );
$limit_string = "LIMIT $event_limit";
} else {
$limit_string = '';
$event_limit = 0;
$limit_string = '';
}
if ( $offset > 0 ) {
if ( $limit == 0 ) {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ See the FAQ section at the [Official site](https://www.e-dynamics.be/wordpress/)

== Changelog ==
= 2.4.4 (2023/07/30) =
* Fix booking for events
* Fix showing a single event from the calendar

= 2.4.3 (2023/07/28) =
* Fix placeholder #_IS_LAST_RECURRENCE
Expand Down

0 comments on commit 630bdaa

Please sign in to comment.