mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
inc: fix a crash report
This commit is contained in:
parent
2480348412
commit
d87ca5d233
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user