summaryrefslogtreecommitdiff
path: root/bg.php
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
commit2c69095a1edf7474073451285238659d0f62ce3f (patch)
tree5dee476605402c66dc2853d0836b29f6aedae62b /bg.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'bg.php')
-rwxr-xr-xbg.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bg.php b/bg.php
index bb0b9d88..40272a70 100755
--- a/bg.php
+++ b/bg.php
@@ -2,7 +2,7 @@
//renaming to bg.php
$dir = "walls/";
$files = scandir($dir);
-$images = array_diff($files, array('.', '..'));
+$images = array_diff($files, ['.', '..']);
$name = $images[array_rand($images)];
// open the file in a binary mode
$fp = fopen($dir . $name, 'rb');