Reply To: WordPress 3.5

As for the missing argument 2 in overview.php on line 187 I just added empty ‘ ‘ at the end of line 187, like this –
$resource_sql = $wpdb->get_results($wpdb->prepare(“SELECT id, name, departure, arrival, roomnumber, number+childs as persons FROM “.$wpdb->prefix .”reservations WHERE approve=’yes’ AND room=’$roomID’ AND (arrival BETWEEN ‘$stardate’ AND ‘$enddate’ OR departure BETWEEN ‘$stardate’ AND ‘$enddate’ OR ‘$stardate’ BETWEEN arrival AND departure) ORDER BY room ASC, roomnumber ASC, arrival ASC”, ”));

– and the message is gone now. But still I am getting this –

Warning: Invalid argument supplied for foreach() in /wp-content/plugins/easyreservations/lib/core/core.php on line 583

How could I possibly get rid of it? I understand it is not at all a bug, but my client will not like that message 🙂