• Resolved stiil

    (@stiil)


    Link to Repo

    
    if( $object !== NULL && 'nav_menu_item' !== $object->post_type ) {
    

    Link to Repo

    
    $old_parent = $post !== NULL ? $post->post_parent : NULL;
    

    Check if object exists before accessing the object ??

    • This topic was modified 7 years, 11 months ago by stiil. Reason: Added another occurance
    • This topic was modified 7 years, 11 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Check for NULL’ is closed to new replies.