v3.78 - general_server_info.php tweak

2 posts by 2 authors in: Forums > CMS Builder
Last Post: 9 hours ago   (RSS)

Hey,

In /cmsAdmin/lib/menus/general_server_info.php

Line 307:

$dbHaveSSL         = mysql_get_query("SHOW VARIABLES WHERE Variable_name IN ('have_ssl')")['Value']; // Disabled, Yes, No

Can return:

Warning: Trying to access array offset on null

In some infrastructure / networking cases..

I've changed it locally to:

$dbHaveSSLresult = mysql_get_query("SHOW VARIABLES WHERE Variable_name = 'have_ssl'");   

$dbHaveSSL = $dbHaveSSLresult['Value'] ?? null;

to prevent the Warning.

Can it be patched into the next version? :-)

Cheers