a bit more robust about loading external pics
also friend confirm was getting wrong email
This commit is contained in:
parent
8abac5e5c7
commit
8424f31aad
7 changed files with 58 additions and 39 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue