Plugin Directory

Changeset 621069


Ignore:
Timestamp:
11/05/2012 12:55:28 AM (13 years ago)
Author:
yourlocalwebmaster
Message:

Added isset(var) to prevent error in PHP 5.4+ servers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • the-very-simple-vimeo-shortcode/trunk/very_simple_vimeo_shortcode.php

    r616609 r621069  
    3131
    3232function your_local_webmaster_vimeo_handler( $atts, $content=null, $code="" ) {
    33         if($atts['width']){
     33        if(isset($atts['width'])){
    3434        $width = $atts['width'];
    3535        }
     
    3737$width = "400";
    3838}
    39         if($atts['height']){
     39        if(isset($atts['height'])){
    4040        $height = $atts['height'];
    4141        }
     
    4343$height = "225";
    4444}
    45 if($atts['class']){
     45if(isset($atts['class'])){
    4646$class=$atts['class'];
    4747}
Note: See TracChangeset for help on using the changeset viewer.