Plugin Directory

Changeset 2154890


Ignore:
Timestamp:
09/11/2019 03:17:22 PM (7 years ago)
Author:
marcusraket.nu
Message:

Fixing php warning of empty array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metapic/trunk/classes/WP_MTPC_Menus.php

    r2065457 r2154890  
    9090                );
    9191            }
    92            
    93             array_shift( $submenu['metapic'] );
     92
     93            if(isset($submenu['metapic']) && !empty($submenu['metapic'])) {
     94                array_shift( $submenu['metapic'] );
     95            }
    9496        }
    9597    }
Note: See TracChangeset for help on using the changeset viewer.