Skip to content
This repository
Browse code

MINOR Removed old array_fill_keys() replacement for PHP 5.1, which is…

… no longer supported.
  • Loading branch information...
commit fec5497873c5c1e7e7ec80c5d61807b53bdaa871 1 parent 2a853b1
Sean Harvey authored March 27, 2012

Showing 1 changed file with 0 additions and 13 deletions. Show diff stats Hide diff stats

  1. 13  core/Core.php
13  core/Core.php
@@ -40,19 +40,6 @@
40 40
 
41 41
 if(defined('E_DEPRECATED')) error_reporting(E_ALL & ~(E_DEPRECATED | E_STRICT));
42 42
 else error_reporting(E_ALL);
43  
-/*
44  
- * This is for versions of PHP prior to version 5.2
45  
- * Creating this here will allow both web requests and cron jobs to inherit it.
46  
- */
47  
-if (!function_exists('array_fill_keys')) {
48  
-	function array_fill_keys($keys,$value) {
49  
-		//Sometimes we get passed an empty array, and if that's the case, you'll get an error message
50  
-		if(sizeof($keys)==0)
51  
-			return Array();
52  
-		else
53  
-			return array_combine($keys,array_fill(0,count($keys),$value));
54  
-	}
55  
-}
56 43
 
57 44
 /**
58 45
  * Include _ss_environment.php files

0 notes on commit fec5497

Please sign in to comment.
Something went wrong with that request. Please try again.