Przeglądaj źródła

Backwards compatability for PHP 5. However please upgrade to PHP 7

FusionPBX 5 lat temu
rodzic
commit
5ea3f19af7
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      resources/functions.php

+ 7 - 0
resources/functions.php

@@ -2109,4 +2109,11 @@ function number_pad($number,$n) {
 		}
 	}
 
+//convert bytes to readable human format
+	if (!function_exists('random_int')) {
+		function random_int() {
+			return rand ();
+		}
+	}
+
 ?>