LPH
Well-known member
The development environment is now tossing a strict standards error after upgrading to PHP 5.4 in ZendServer, XF 1.2.3, WordPress 3.8 beta-1, and the plugin I'm re-writing.
How can the array be rewritten? Stackoverflow threads discuss defining an intermediate variable. I've tried a few ways but then end up with a call-time by reference error, and few others (depending on my attempts).
Thank you for any advice.
Code:
// Strict Standards: Only variables should be passed by reference happens here
if($forumModel->canPostThreadInForum($forum, $errorPhraseKey = '')) {
How can the array be rewritten? Stackoverflow threads discuss defining an intermediate variable. I've tried a few ways but then end up with a call-time by reference error, and few others (depending on my attempts).
Thank you for any advice.