a bit more robust about loading external pics

also friend confirm was getting wrong email
This commit is contained in:
Mike Macgirvin 2010-10-04 16:04:52 -07:00
commit 8424f31aad
7 changed files with 58 additions and 39 deletions

View file

@ -287,7 +287,7 @@ function photos_post(&$a) {
$imagedata = @file_get_contents($src);
$ph = new Photo($imagedata);
if(! ($image = $ph->getImage())) {
if(! $ph->is_valid()) {
notice( t('Unable to process image.') . EOL );
@unlink($src);
killme();