fix wrong logical check (#7282)
Forgot to remove the '!' (not) operator from the cache check when re-organizing the update cache function
This commit is contained in:
@@ -55,7 +55,7 @@ class auto_loader {
|
|||||||
|
|
||||||
public function update_cache(string $file = ''): bool {
|
public function update_cache(string $file = ''): bool {
|
||||||
//guard against writing an empty file
|
//guard against writing an empty file
|
||||||
if (!empty($this->classes)) {
|
if (empty($this->classes)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user