pupupu

simple static CMS for crappy servers
git clone https://git.ce9e.org/pupupu.git

commit
d064bbdc11a1c462beddab8b67529e394cc86b93
parent
b7cc501189f264e405e7431457af930dc5596a84
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-12-13 13:49
do not throw on rmdirs

Diffstat

M utils.php 5 ++---

1 files changed, 2 insertions, 3 deletions


diff --git a/utils.php b/utils.php

@@ -36,10 +36,9 @@ function rmdirs($path)
   36    36 {
   37    37     if ($path !== '.' && is_dir($path)) {
   38    38         $success = rmdir($path);
   39    -1         if ($success === false) {
   40    -1             throw new WriteException($path);
   -1    39         if ($success) {
   -1    40             rmdirs(dirname($path));
   41    41         }
   42    -1         rmdirs(dirname($path));
   43    42     }
   44    43 }
   45    44