Skip to content

Commit

Permalink
Fixed a PHP notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bakovic committed Oct 22, 2019
1 parent 3131a7f commit 3ab5ad3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions core/admin/admin-publish.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function myarcade_publish_games() {
$cat = $_POST['category'];
$posts = (isset($_POST['games'])) ? intval($_POST['games']) : false;
$download_screens = (isset($_POST['downloadscreens'])) ? true : false;
$download_games = (isset($_POST['downloadgames'])) ? true : false;

// Generate the query
$query_array = array();
Expand Down Expand Up @@ -227,12 +226,6 @@ function(data) {
}
?>
</div>
<div id="down_games">
<?php if ($download_games && ( ! is_writable( $upload_dir['gamesdir'] ) ) ) {
echo '<p class="mabp_error mabp_680">'.sprintf(__("The games directory '%s' must be writeable (chmod 777) in order to download games.", 'myarcadeplugin'), $upload_dir['gamesdir'] ).'</p>';
}
?>
</div>

<?php if ( $start_publishing == 'yes' ) : ?>

Expand Down Expand Up @@ -342,7 +335,7 @@ function myarcade( id ) {
schedule: '<?php echo $schedule; ?>',
count: myarcade_count,
download_screens: '<?php echo $download_screens; ?>',
download_games: '<?php echo $download_games; ?>'
download_games: 'false'
},
success: function( response ) {
if ( response !== Object( response ) || ( typeof response.success === "undefined" && typeof response.error === "undefined" ) ) {
Expand Down

0 comments on commit 3ab5ad3

Please # to comment.