Commit 3390b255c4e959d94e7c04827a04769ef714e173

Authored by Neil Blakey-Milner
1 parent b351905c

Use PHP_Compat to support older versions of PHP.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3489 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 12 deletions
lib/util/legacy.inc
@@ -11,17 +11,7 @@ if (!function_exists('array_fill')) { @@ -11,17 +11,7 @@ if (!function_exists('array_fill')) {
11 } 11 }
12 } 12 }
13 13
14 -if(!function_exists('array_combine')) {  
15 - function array_combine($a, $b) {  
16 - $c = array();  
17 - $at = array_values($a);  
18 - $bt = array_values($b);  
19 - foreach ($at as $key=>$aval) {  
20 - $c[$aval] = $bt[$key];  
21 - }  
22 - return $c;  
23 - }  
24 -}  
25 - 14 +require_once('PHP/Compat.php');
  15 +PHP_Compat::loadVersion();
26 16
27 ?> 17 ?>