Changeset 98333 in spip-zone


Ignore:
Timestamp:
Jun 11, 2016, 3:27:06 PM (3 years ago)
Author:
p@…
Message:

S'il n'y a pas d'image, on n'envoie false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/facebook/trunk/inc/facebook.php

    r98180 r98333  
    308308        $picture = facebook_profil_picture($token, $width, $height);
    309309        $balise_img = charger_filtre('balise_img');
    310 
    311         return $balise_img($picture['url'], $alt, $class);
    312 }
     310        if (!empty($picture['url'])) {
     311                return $balise_img($picture['url'], $alt, $class);
     312        } else {
     313                return false;
     314        }
     315}
Note: See TracChangeset for help on using the changeset viewer.