Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.php « lib - github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b25bf74a2683b475ceac82d8913fd9023ebcde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
/**
 * Utility functions
 */
function add_filters($tags, $function) {
  foreach($tags as $tag) {
    add_filter($tag, $function);
  }
}

function is_element_empty($element) {
  $element = trim($element);
  return empty($element) ? false : true;
}