Avoiding errors when checking for the lockpath
This commit is contained in:
parent
bca4d31410
commit
a9fdba638f
6
boot.php
6
boot.php
|
@ -1811,7 +1811,11 @@ function get_lockpath() {
|
||||||
|
|
||||||
if ($temppath != "") {
|
if ($temppath != "") {
|
||||||
$lockpath = $temppath."/lock";
|
$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)) {
|
if (is_dir($lockpath) AND is_writable($lockpath)) {
|
||||||
set_config("system", "lockpath", $lockpath);
|
set_config("system", "lockpath", $lockpath);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user