Commit 2ddab71d authored by Franco Fichtner's avatar Franco Fichtner

inc: fix a crash report

(cherry picked from commit d87ca5d2)
parent acfc65b9
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment