From 2c69095a1edf7474073451285238659d0f62ce3f Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Sun, 25 Sep 2022 13:30:13 +1000 Subject: PHP8.1 fixes from Rector --- bg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bg.php') 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'); -- cgit v1.3