database prefix bug

Hi easyReservations,

I’m having a couple minor issues with your plugin (doesn’t work on the frontend when I’m logged into the backend on the same computer) but I’m gnerally quite impressed. I did notice one minor bug though that it causing me a lot of PHP errors.

Line 333 of overview.php

if(isset($roomwhere)) $all_resources = $wpdb-> ("SELECT ID, post_title FROM wp_posts WHERE ID='$roomwhere'");

I believe instead it should be

if(isset($roomwhere)) $all_resources = $wpdb-> ("SELECT ID, post_title FROM ".$wpdb->prefix ."posts WHERE ID='$roomwhere'");

Thanks for reporting will be improved in next update.

You must be logged in to reply in this thread.

2 posts