make sure this sucker is quiet

This commit is contained in:
friendica 2015-03-16 15:50:45 -07:00
parent 2bd3dc6101
commit ccf4734f7b

View file

@ -22,7 +22,7 @@ function wall_attach_post(&$a) {
if($_FILES['userfile']['tmp_name']) {
$x = getimagesize($_FILES['userfile']['tmp_name']);
$x = @getimagesize($_FILES['userfile']['tmp_name']);
if(($x) && ($x[2] === IMG_GIF || $x[2] === IMG_JPG || $x[2] === IMG_JPEG || $x[2] === IMG_PNG)) {
$args = array( 'source' => 'editor', 'visible' => 0, 'contact_allow' => array($channel['channel_hash']));
$ret = photo_upload($channel,$observer,$args);