Skip to content

Commit 1b27017

Browse files
authored
fix warning implode php 7.4
1 parent b1c93dc commit 1b27017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ActiveRecord.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ function activerecord_autoload($class_name)
4040
foreach ($namespaces as $directory)
4141
$directories[] = $directory;
4242

43-
$root .= DIRECTORY_SEPARATOR . implode($directories, DIRECTORY_SEPARATOR);
43+
$root .= DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $directories);
4444
}
4545

4646
$file = "$root/$class_name.php";
4747

4848
if (file_exists($file))
4949
require_once $file;
50-
}
50+
}

0 commit comments

Comments
 (0)