esotalk / esoTalk

Fat-free forum software.
GNU General Public License v2.0
1.47k stars 239 forks source link

Fatal error on click New Conversation #403

Open amdrade opened 9 years ago

amdrade commented 9 years ago

Fatal error when a user without permission to create topics try to create a new topic.

tvb commented 9 years ago

Show us at least some debugging output, thanks.

amdrade commented 9 years ago

SQL Error (42000, 1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 4

SELECT * FROM et_member_channel WHERE (memberId='3') AND (channelId IN ())

ETDatabase->query() [C:\xampp\htdocs\forum\core\lib\ETSQLQuery.class.php:680] ETSQLQuery->exec() [C:\xampp\htdocs\forum\core\models\ETChannelModel.class.php:160] ETChannelModel->joinUserData() [C:\xampp\htdocs\forum\core\models\ETChannelModel.class.php:129] ETChannelModel->get() [C:\xampp\htdocs\forum\core\controllers\ETConversationController.class.php:357] ETConversationController->action_start() call_user_func_array() [C:\xampp\htdocs\forum\core\lib\ETController.class.php:181] ETController->dispatch() [C:\xampp\htdocs\forum\core\bootstrap.php:326] require() [C:\xampp\htdocs\forum\index.php:19]