Oh my...
Still, that's no solution. Other people are using LiteSpeed, and I need to make sure that this line of code will be accepted, or rewrite it in an acceptable way. (Its only purpose is to add to an array a list of language sub-folders that should be searched for language items. There are approximately 8742 different ways of doing that, but this one was by far the shortest and coolest. I tend to commit my code only when it's short and cool enough. Cool because I'm vain, and short because it makes for more maintainable code if it's not too cryptic.)
Posted: March 3rd, 2014, 07:02 PM
Stupid me!! That's what happens when you're trying to work on several things at the same time.
I just realized that the error wasn't due to glob() (I focused too much on GLOB_ONLYDIR), but on the "+=" item.
Thing is, glob() MAY return false instead of an array, if an error occurred.
I don't know why your error wasn't logged, though...! Who cares that the operand is unsupported. What I want to know is why your code failed in the first place.
Can you re-enable LiteSpeed, and replace the line of code with this?
$language_directories += (array) glob(LANGUAGES_DIR . '/*', GLOB_ONLYDIR);
This will force typecasting the result to an array, and avoid this error. Then, maybe it'll finally record the error...