Skip to content
Snippets Groups Projects
Commit ac7b645d authored by Jesse Norell's avatar Jesse Norell
Browse files

add array_column function if not exists

parent 84a35dd2
No related branches found
No related tags found
No related merge requests found
......@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment