diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2022-09-25 13:30:13 +1000 |
| commit | 2c69095a1edf7474073451285238659d0f62ce3f (patch) | |
| tree | 5dee476605402c66dc2853d0836b29f6aedae62b /c.php | |
| parent | e9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff) | |
PHP8.1 fixes from Rector
Diffstat (limited to 'c.php')
| -rwxr-xr-x | c.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ <?php $dir = "banners/"; $files = scandir($dir); -$images = array_diff($files, array('.', '..')); +$images = array_diff($files, ['.', '..']); $name = $images[array_rand($images)]; $fp = fopen($dir . $name, 'rb'); |
