Closed matthewf-ucsd closed 6 years ago
Thanks, @matthewf-ucsd. I bet you're getting sick of sending these PRs. My sympathies :-D and sorry for the oversight.
Hah, it's only been two so far :) Thank you for all you do on the Commons-in-a-Box project!
Sorry about that. That was totally my fault--I've become php5 blind. :)
PHP 5.5 added the functionality to use empty() directly on the return values of functions. Eliminating that by saving the return value to a local variable before calling empty() restores compatibility with PHP 5.3 and 5.4, which are still officially supported by Buddypress and Wordpress.