Plugin Directory

Changeset 2781982


Ignore:
Timestamp:
09/08/2022 12:58:03 PM (4 years ago)
Author:
chuhpl
Message:

BUGFIX: Fixed a problem with a count() call in the Cities management template that was throwing an error if you had no cities entered (PHP 5 > 7 issue)

BUGFIX: Fixed problems with errors on variables that weren't set yet on the Add Branch page.

BUGFIX: Fixed problems with errors on variables that weren't set yet on the Add Room page.

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

Legend:

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

    r2776771 r2781982  
    106106
    107107== Changelog ==
    108 = 2.8.8 =
     108= 2.8.9 =
    109109* BUGFIX: Fixed a few count() calls that were erroring out on empty.
    110110* BUGFIX: Changed the wp_enqueue_script to make jQuery work properly.
     111* BUGFIX: Fixed a problem with a count() call in the Cities management template that was throwing an error if you had no cities entered (PHP 5 > 7 issue)
     112
     113= 2.8.8 =
     114* BUGFIX: Fixed problems with errors on variables that weren't set yet on the Add Branch page.
     115* BUGFIX: Fixed problems with errors on variables that weren't set yet on the Add Room page.
    111116
    112117= 2.8.7 =
  • book-a-room/trunk/bookaroom.php

    r2776769 r2781982  
    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.8
     6Version: 2.8.9
    77Author: Colin Tomele
    88Author URI: http://heightslibrary.org
  • book-a-room/trunk/templates/branches/edit.php

    r1735561 r2781982  
    3232<?php
    3333}
     34
     35$branchID       = ( isset( $branchInfo['branchID'] ) )          ? $branchInfo['branchID']  : null;
     36$branchDesc     = ( isset( $branchInfo['branchDesc'] ) )        ? $branchInfo['branchDesc'] : null;
     37$branchAddress  = ( isset( $branchInfo['branchAddress'] ) )     ? $branchInfo['branchAddress'] : null;
     38$branchMapLink  = ( isset( $branchInfo['branchMapLink'] ) )     ? $branchInfo['branchMapLink'] : null;
     39$branchImageURL = ( isset( $branchInfo['branchImageURL'] ) )    ? $branchInfo['branchImageURL'] : null;
     40
     41
    3442?>
    35 <form id="form1" name="form1" method="post" action="?page=bookaroom_Settings_Branches&branchID=<?PHP echo $branchInfo['branchID']; ?>&action=<?php echo $action; ?>">
     43<form id="form1" name="form1" method="post" action="?page=bookaroom_Settings_Branches&branchID=<?PHP echo $branchID; ?>&action=<?php echo $action; ?>">
    3644    <table class="tableMain">
    3745        <tr>
     
    4755                <?php _e( 'Branch Name', 'book-a-room' ); ?>
    4856            </td>
    49             <td colspan="2"><input name="branchDesc" type="text" id="branchDesc" value="<?php echo $branchInfo['branchDesc']; ?>" size="50" maxlength="64"/>
     57            <td colspan="2"><input name="branchDesc" type="text" id="branchDesc" value="<?php echo $branchDesc; ?>" size="50" maxlength="64"/>
    5058            </td>
    5159        </tr>
     
    5563            </td>
    5664            <td colspan="2">
    57                 <textarea name="branchAddress" cols="50" rows="3" id="branchAddress"><?php echo $branchInfo['branchAddress']; ?></textarea>
     65                <textarea name="branchAddress" cols="50" rows="3" id="branchAddress"><?php echo $branchAddress; ?></textarea>
    5866            </td>
    5967        </tr>
     
    6270                <?php _e( 'Map Link', 'book-a-room' ); ?>
    6371            </td>
    64             <td colspan="2"><input name="branchMapLink" type="text" id="branchMapLink" value="<?php echo $branchInfo['branchMapLink']; ?>" size="50"/>
     72            <td colspan="2"><input name="branchMapLink" type="text" id="branchMapLink" value="<?php echo $branchMapLink; ?>" size="50"/>
    6573            </td>
    6674        </tr>
     
    7078                <?php _e( '(Gradient between 176x420 pixels)', 'book-a-room' ); ?>
    7179            </td>
    72             <td colspan="2"><input name="branchImageURL" type="text" id="branchImageURL" value="<?php echo $branchInfo['branchImageURL']; ?>" size="50"/>
     80            <td colspan="2"><input name="branchImageURL" type="text" id="branchImageURL" value="<?php echo $branchImageURL; ?>" size="50"/>
    7381            </td>
    7482        </tr>
     
    122130                <?php echo $dayName; ?>
    123131            </td>
    124             <td><input name="branchOpen_<?php echo $num; ?>" type="text" id="branchOpen_<?php echo $num; ?>" value="<?php echo $branchInfo["branchOpen_{$num}"]; ?>" size="5" maxlength="5"/>
     132            <td><input name="branchOpen_<?php echo $num; ?>" type="text" id="branchOpen_<?php echo $num; ?>" value="<?php echo ( isset( $branchInfo["branchOpen_{$num}"] ) ) ? $branchInfo["branchOpen_{$num}"] : null; ?>" size="5" maxlength="5"/>
    125133                <input type="checkbox" name="branchOpen_<?php echo $num; ?>PM" id="branchOpen_<?php echo $num; ?>PM" <?php echo ( !empty( $branchInfo[ "branchOpen_{$num}PM"] ) ) ? ' checked="checked"' : null; ?> />
    126134                <?php _e( 'PM', 'book-a-room' ); ?>
    127135            </td>
    128             <td><input name="branchClose_<?php echo $num; ?>" type="text" id="branchClose_<?php echo $num; ?>" value="<?php echo $branchInfo["branchClose_{$num}"]; ?>" size="5" maxlength="5"/>
     136            <td><input name="branchClose_<?php echo $num; ?>" type="text" id="branchClose_<?php echo $num; ?>" value="<?php echo ( isset( $branchInfo["branchClose_{$num}"] ) ) ? $branchInfo["branchClose_{$num}"] : null; ?>" size="5" maxlength="5"/>
    129137                <input type="checkbox" name="branchClose_<?php echo $num; ?>PM" id="branchClose_<?php echo $num; ?>PM" <?php echo ( !empty( $branchInfo[ "branchClose_{$num}PM"] ) ) ? ' checked="checked"' : null; ?> />
    130138                <?php _e( 'PM', 'book-a-room' ); ?>
  • book-a-room/trunk/templates/cities/mainAdmin.php

    r1728908 r2781982  
    1919</h2>
    2020<?php
    21 if( count( $cityList ) == 0 ) {
     21if( !isset( $cityList ) or count( $cityList ) == 0 ) {
    2222    ?>
    2323<p>
  • book-a-room/trunk/templates/rooms/edit.php

    r1733681 r2781982  
    3131}
    3232?>
    33 <form name="form1" method="post" action="?page=bookaroom_Settings_Rooms&action=<?php echo $action; ?>&roomID=<?php echo $roomInfo[ 'roomID' ]; ?>">
     33<form name="form1" method="post" action="?page=bookaroom_Settings_Rooms&action=<?php echo $action; ?>&roomID=<?php echo ( isset( $roomInfo[ 'roomID' ] ) ) ? $roomInfo[ 'roomID' ] : null; ?>">
    3434    <table class="tableMain">
    3535        <tr>
     
    4040            </td>
    4141            <td>
    42                 <input name="roomDesc" type="text" id="roomDesc" value="<?php echo $roomInfo[ 'roomDesc' ]; ?>" size="48" maxlength="64">
     42                <input name="roomDesc" type="text" id="roomDesc" value="<?php echo ( isset( $roomInfo[ 'roomDesc' ] ) ) ? $roomInfo[ 'roomDesc' ] : null; ?>" size="48" maxlength="64">
    4343            </td>
    4444        </tr>
     
    5555                    <?php
    5656                    foreach ( $branchList as $key => $val ) {
    57                         $temp = $branch_line;
     57                        #$temp = $branch_line;
    5858                        $checked = ( !empty( $roomInfo[ 'branch' ] ) and $roomInfo[ 'branch' ] == $key ) ? ' selected="selected"' : NULL;
    5959                    ?>
Note: See TracChangeset for help on using the changeset viewer.