Commit ac7b645d authored by Jesse Norell's avatar Jesse Norell
Browse files

add array_column function if not exists

parent 84a35dd2
Pipeline #9470 passed with stage
in 10 minutes and 48 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