mikejolley/download-monitor — pull request #37 by ELsMystERy (2012-12-31 03:07:28+00:00)
Title: Create LINE_208_FIXED_download.php

Line 208 was causing PHP errors because it was not properly formatted.

It was: $old_date = $wpdb->get_var( $wpdb->prepare( "SELECT date FROM $wp_dlm_db_log WHERE ip_address = '$ipAddress' AND download_id = ".$d->id." ORDER BY date DESC limit 1;") );

That did not provide the correct amount of arguments. I fixed it.

More information on wpdb-prepare formatting here: http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/

LINE_208_FIXED_download.php should be renamed and replace the download.php file.