MDL-63655 core: Fix miss-placed parenthesis
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 14 Oct 2018 22:48:23 +0000 (00:48 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 14 Oct 2018 23:02:25 +0000 (01:02 +0200)
lib/classes/update/code_manager.php

index 9eac43b..3493ad4 100644 (file)
@@ -328,7 +328,7 @@ class code_manager {
             if ($fileinfo->getFilename() === '..') {
                 continue;
             }
-            if (strpos($fileinfo->getRealPath(), $folderpathinfo->getRealPath() !== 0)) {
+            if (strpos($fileinfo->getRealPath(), $folderpathinfo->getRealPath()) !== 0) {
                 throw new moodle_exception('unexpected_filepath_mismatch', 'core_plugin');
             }
             $key = substr($fileinfo->getRealPath(), $strip);