friendica / red

The Red Matrix
MIT License
214 stars 50 forks source link

make update 1133 work in PHP < 5.5 #893

Closed zzottel closed 9 years ago

zzottel commented 9 years ago

empty() doesn't work on functions in PHP < 5.5. This made my hubs only spit out 500s after I pulled yesterday (hadn't pulled for over a week before).

Please review closely, I'm not sure if the solution is ok like that. (Taken from http://php.net/manual/en/function.empty.php )