Update meme voting

This commit is contained in:
2024-04-27 11:48:58 +02:00
parent 287c2050e0
commit adb738c12f
24 changed files with 43 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
function generateScriptData($phpArray):string {
// Check if the array is associative and single-level
if (is_array($phpArray) && count($phpArray) > 0 && count(array_filter(array_keys($phpArray), 'is_string')) === count($phpArray)) {