Parcourir la source

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

FusionPBX il y a 5 ans
Parent
commit
5ea3f19af7
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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 ();
+		}
+	}
+
 ?>