Plugin Directory

Changeset 2303479


Ignore:
Timestamp:
05/12/2020 01:05:36 PM (6 years ago)
Author:
libsyn
Message:

update for 1.2.2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libsyn-podcasting/trunk/admin/lib/Libsyn/Service/Sanitize.php

    r2302786 r2303479  
    288288     */
    289289    public function array( $array ) {
    290         foreach ( $array as $key => &$value ) {
    291             if ( is_array( $value ) ) {
    292                 $value = $this->array($value);
    293             }
    294             else {
    295                 $value = sanitize_text_field( $value );
    296             }
    297         }
     290        if ( is_array($array) ) {
     291            foreach ( $array as $key => &$value ) {
     292                if ( is_array( $value ) ) {
     293                    $value = $this->array($value);
     294                }
     295                else {
     296                    $value = sanitize_text_field( $value );
     297                }
     298            }
     299        }
    298300
    299301        return $array;
Note: See TracChangeset for help on using the changeset viewer.