inc: fix a crash report

This commit is contained in:
Franco Fichtner 2015-10-19 08:55:11 +02:00
parent 2480348412
commit d87ca5d233

View File

@ -107,10 +107,12 @@ function lock($lock, $op = LOCK_SH)
/* unlock configuration file */
function unlock($cfglckkey = 0)
function unlock($cfglckkey = null)
{
flock($cfglckkey, LOCK_UN);
fclose($cfglckkey);
if ($cfglckkey) {
flock($cfglckkey, LOCK_UN);
fclose($cfglckkey);
}
}
function is_module_loaded($module_name) {