preg_match('!^([^/]+)(/.+)?$!', $server['SERVER_SOFTWARE'], $webserver);
if (stristr($webserver[1], 'Apache') && function_exists('apache_get_version')) {

If $webserver does not have any match, it won't have index 1 and give a notice. Should be simple to fix

Comments

coltrane’s picture

Status: Active » Needs review
StatusFileSize
new630 bytes

Thanks!

coltrane’s picture

StatusFileSize
new630 bytes

And patch for D6.

coltrane’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.