Code Duplication    Length = 6-6 lines in 2 locations

includes/general.php 2 locations

@@ 24-29 (lines=6) @@
21
    $sql = apply_filters( 'pods_query_sql', $sql, $error, $results_error, $no_results_error );
22
    $sql = $podsdata->get_sql($sql);
23
24
    if ( is_array( $error ) ) {
25
        if ( !is_array( $sql ) )
26
            $sql = array( $sql, $error );
27
28
        $error = 'Database Error';
29
    }
30
31
    if ( 1 == pods_v( 'pods_debug_sql_all', 'get', 0 ) && is_user_logged_in() && pods_is_admin( array( 'pods' ) ) ) {
32
        $debug_sql = $sql;
@@ 1746-1751 (lines=6) @@
1743
 * @link http://pods.io/docs/pods-group-add/
1744
 */
1745
function pods_group_add ( $pod, $label, $fields, $context = 'normal', $priority = 'default', $type = null ) {
1746
    if ( !is_array( $pod ) && null !== $type ) {
1747
        $pod = array(
1748
            'name' => $pod,
1749
            'type' => $type
1750
        );
1751
    }
1752
1753
    pods_meta()->group_add( $pod, $label, $fields, $context, $priority );
1754
}