Commit 2b30a072 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch '6231-php-5-4-incompatibility-array_column' into 'develop'

Resolve "php 5.4 incompatibility array_column"

Closes #6231

See merge request !1524
parents 84a35dd2 ac7b645d
Pipeline #9613 passed with stage
in 18 seconds
......@@ -28,6 +28,13 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* compatibility for php < 5.5 (centos 7), remove when no longer needed */
if(!function_exists("array_column")){
function array_column($array,$column_name){
return array_map(function($element) use($column_name){return $element[$column_name];}, $array);
}
}
class webserver_plugin {
var $plugin_name = 'webserver_plugin';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment