Plugin Directory

Changeset 2776769


Ignore:
Timestamp:
08/28/2022 03:27:18 PM (4 years ago)
Author:
chuhpl
Message:

BUGFIX: Fixed a few count() calls that were erroring out on empty.
BUGFIX: Changed the wp_enqueue_script to make jQuery work properly.

Location:
book-a-room/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • book-a-room/trunk/README.txt

    r2762597 r2776769  
    106106
    107107== Changelog ==
     108= 2.8.8 =
     109* BUGFIX: Fixed a few count() calls that were erroring out on empty.
     110* BUGFIX: Changed the wp_enqueue_script to make jQuery work properly.
     111
    108112= 2.8.7 =
    109113* BUGFIX: Fixed update routine for database.
  • book-a-room/trunk/bookaroom.php

    r2762597 r2776769  
    44Plugin URI: https://wordpress.org/plugins/book-a-room/
    55Description: Book a Room is a library oriented meeting room management and event calendar system.
    6 Version: 2.8.7
     6Version: 2.8.8
    77Author: Colin Tomele
    88Author URI: http://heightslibrary.org
     
    5656    }
    5757   
    58     wp_enqueue_script( 'bookaroom_js', plugins_url( 'book-a-room/js/jstree/jquery.jstree.js' ), false );
     58    wp_enqueue_script( 'bookaroom_js', plugins_url( 'book-a-room/js/jstree/jquery.jstree.js' ), array('jquery'), null, true );
    5959   
    6060    # languages
  • book-a-room/trunk/templates/roomConts/mainAdmin.php

    r1732355 r2776769  
    9797                            foreach( $roomContList['id'][$rc_val]['rooms'] as $room_key => $room_val ) {
    9898                                $amenityListDisp = 'None';
    99                                 if( count( $roomList['id'][$room_val]['amenity'] ) !== 0 ) {
     99                                if( !empty( $roomList['id'][$room_val]['amenity'] ) and count( $roomList['id'][$room_val]['amenity'] ) !== 0 ) {                                    $a_list = array();
    100100                                    $a_list = array();
    101101                                    foreach(  $roomList['id'][$room_val]['amenity'] as $a_key => $a_val ) {
  • book-a-room/trunk/templates/rooms/mainAdmin.php

    r1732355 r2776769  
    5656            } else {
    5757                foreach ( $roomList[ 'room' ][ $b_key ] as $r_key => $r_val ) {
    58                     if ( count( $roomList[ 'id' ][ $r_key ][ 'amenity' ] ) == 0 ){
     58                    if ( empty( $roomList[ 'id' ][ $r_key ][ 'amenity' ] ) or count( $roomList[ 'id' ][ $r_key ][ 'amenity' ] ) == 0 ){
    5959                        $amenityListArr = __( 'None', 'book-a-room' );
    6060                    } else {
Note: See TracChangeset for help on using the changeset viewer.