invalid error
authorAlan <alan@roojs.com>
Wed, 30 Mar 2022 08:34:07 +0000 (16:34 +0800)
committerAlan <alan@roojs.com>
Wed, 30 Mar 2022 08:34:07 +0000 (16:34 +0800)
System.php

index 698257c..e698eb4 100644 (file)
@@ -635,7 +635,7 @@ class System
       */
     static function rename($src, $dest)
     {
-        if (file_exists($src)) {
+        if (!file_exists($src)) {
             trigger_error("Rename source location does not exist",E_USER_ERROR);
         }
         $cmd = System::which('mv') . ' ' . escapeshellarg($src) . ' ' . escapeshellarg($dest);