Jump to content


- - - - -
Photo

[3.0.5] Driver error posting new topic


If you post a new topic and do NOT specify a post icon, you may receive a driver error.

This only affects people running MySQL5 in strict mode.

The fix is to edit /admin/applications/forums/sources/classes/post/classPost.php

find

'icon_id' 	=> $this->request['iconid'] ? $this->request['iconid'] : $this->_originalPost['icon_id'],

and replace it with

'icon_id' 	=> isset($this->request['iconid']) ? intval($this->request['iconid']) : intval($this->_originalPost['icon_id']),

The attached file is the patched file.

Attached File  classPost.php   108.88K   336 downloads



0 Comments


Developer Docs · Error Codes