Browse Source

Avoiding errors when checking for the lockpath

pull/1893/head
Michael Vogel 6 years ago
parent
commit
a9fdba638f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      boot.php

+ 5
- 1
boot.php View File

@ -1811,7 +1811,11 @@ function get_lockpath() {
if ($temppath != "") {
$lockpath = $temppath."/lock";
mkdir($lockpath);
if (!is_dir($lockpath))
mkdir($lockpath);
elseif (!is_writable($lockpath))
$lockpath = $temppath;
if (is_dir($lockpath) AND is_writable($lockpath)) {
set_config("system", "lockpath", $lockpath);


Loading…
Cancel
Save