summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 7db040d04..01ffa751f 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -961,7 +961,7 @@
}
function file_is_locked($filename) {
- if (function_exists('flock')) {
+ if (function_exists('flock') && file_exists(LOCK_DIRECTORY . "/$filename")) {
$fp = @fopen(LOCK_DIRECTORY . "/$filename", "r");
if ($fp) {
if (flock($fp, LOCK_EX | LOCK_NB)) {